File tree Expand file tree Collapse file tree 3 files changed +12
-19
lines changed Expand file tree Collapse file tree 3 files changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,16 @@ Version 3.0
107
107
#else
108
108
#define NEEDS_NULLPTR_DEFINED 0
109
109
#endif
110
+ #elif defined(__APPLE__)
111
+ // For some reason we keep getting compiler errors on OS X/iOS if nullptr isn't
112
+ // defined to NULL
113
+ #define NEEDS_NULLPTR_DEFINED 1
114
+ #elif __has_feature
115
+ #if __has_feature(cxx_nullptr)
116
+ #define NEEDS_NULLPTR_DEFINED 0
117
+ #else
118
+ #define NEEDS_NULLPTR_DEFINED 1
119
+ #endif
110
120
#else
111
121
// Let everything else trigger based on whether we have nullptr_t
112
122
#if defined nullptr_t
@@ -117,20 +127,7 @@ Version 3.0
117
127
#endif
118
128
#endif
119
129
120
- #ifdef __has_feature
121
- #ifdef NEEDS_NULLPTR_DEFINED
122
- #undef NEEDS_NULLPTR_DEFINED
123
- #endif
124
- #if __has_feature(cxx_nullptr)
125
- #define NEEDS_NULLPTR_DEFINED 0
126
- #else
127
- #define NEEDS_NULLPTR_DEFINED 1
128
- #endif
129
- #endif
130
-
131
- // For some reason we keep getting compiler errors os OS X/iOS if nullptr isn't
132
- // defined to NULL
133
- #if NEEDS_NULLPTR_DEFINED || defined(__APPLE__)
130
+ #if NEEDS_NULLPTR_DEFINED
134
131
#define nullptr NULL
135
132
#endif
136
133
Original file line number Diff line number Diff line change @@ -68,10 +68,6 @@ elseif(WIN32)
68
68
set (EXTRALINKS Httpapi.lib Winhttp.dll )
69
69
endif ()
70
70
71
- add_definitions (
72
- -D_WEBSOCKETPP_CPP11_STL_
73
- )
74
-
75
71
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNINGS} -Werror -pedantic" )
76
72
77
73
add_library (${Casablanca_LIBRARY} ${SOURCES} )
Original file line number Diff line number Diff line change 105
105
<ClInclude Include =" $(CasablancaIncludeDir)\cpprest\rawptrstream.h" >
106
106
<Filter >Header Files\cpprest</Filter >
107
107
</ClInclude >
108
- <ClInclude Include =" $(CasablancaIncludeDir)\cpprest\ compat\SafeInt3.hpp" >
108
+ <ClInclude Include =" $(CasablancaIncludeDir)\compat\SafeInt3.hpp" >
109
109
<Filter >Header Files\cpprest</Filter >
110
110
</ClInclude >
111
111
<ClInclude Include =" $(CasablancaIncludeDir)\cpprest\streams.h" >
You can’t perform that action at this time.
0 commit comments