We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a40c8 commit ad71251Copy full SHA for ad71251
CMakeLists.txt
@@ -95,11 +95,11 @@ foreach(target libwsv5_static libwsv5_shared)
95
)
96
97
# macOS specific flags for BSD type compatibility
98
- if(APPLE)
99
- target_compile_options(${target} PRIVATE
100
- -D_DEFAULT_SOURCE
101
- )
102
- endif()
+ #if(APPLE)
+ # target_compile_options(${target} PRIVATE
+ # -D_DEFAULT_SOURCE
+ # )
+ #endif()
103
endforeach()
104
105
# Optional: Build test program
libwsv5.c
@@ -13,6 +13,11 @@
13
#define _POSIX_C_SOURCE 200809L
14
#define _DEFAULT_SOURCE
15
16
+#ifdef __APPLE__
17
+#define _DARWIN_C_SOURCE
18
+#include <sys/types.h>
19
+#endif
20
+
21
#include "libwsv5.h"
22
23
#include <stdio.h>
0 commit comments