diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2026-10-12 17:59:20 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2026-10-12 17:59:20 +0200 |
| commit | 426535e4cd481b3bf65af4798ab05a7af1a2a1fc (patch) | |
| tree | b6eefbcd265ab9e54f15d46e0a04a0d47c5bb10f | |
| parent | f65c7d5e45331a3bbe16aebd48ee3b92e99f6a46 (diff) | |
should solve win & apple compilation
| -rw-r--r-- | CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/cross_os.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7452465..33adac5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,10 @@ IF (ENABLE_PROFILING) ADD_LINK_OPTIONS(-pg) ENDIF() +if (MSVC) + ADD_COMPILE_OPTIONS(/experimental:c11atomics) +endif() + if (CMAKE_BUILD_TYPE STREQUAL "Debug") ADD_DEFINITIONS (-DDEBUG) OPTION(ENABLE_VALIDATION "enable vulkan validation layer" ON) diff --git a/src/cross_os.h b/src/cross_os.h index 4ca025b..43b5206 100644 --- a/src/cross_os.h +++ b/src/cross_os.h @@ -38,6 +38,9 @@ #define disable_warning (warn) #define reset_warning (warn) #elif __APPLE__ +#include <sys/stat.h> +#include <sys/types.h> +#include <errno.h> #include <math.h> #define vkvg_inline static #define disable_warning (warn) |