mirror of https://github.com/CrowCpp/Crow.git
Apply workaround for Apple to FreeBSD aswell
Maybe these should be triggered by __clang__?
This commit is contained in:
parent
cae4d3e498
commit
c8e376cfa5
|
@ -1653,7 +1653,7 @@ namespace crow
|
|||
}
|
||||
else
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__MACH__)
|
||||
#if defined(__APPLE__) || defined(__MACH__) || defined (__FreeBSD__)
|
||||
o = std::unique_ptr<object>(new object(initializer_list));
|
||||
#else
|
||||
(*o) = initializer_list;
|
||||
|
@ -1672,7 +1672,7 @@ namespace crow
|
|||
}
|
||||
else
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__MACH__)
|
||||
#if defined(__APPLE__) || defined(__MACH__) || defined (__FreeBSD__)
|
||||
o = std::unique_ptr<object>(new object(value));
|
||||
#else
|
||||
(*o) = value;
|
||||
|
|
Loading…
Reference in New Issue