diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-12 13:58:01 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-12 13:58:01 +0100 |
| commit | fac592f1ea6961c2dc8066a77679a6d0685db477 (patch) | |
| tree | c64da95b05a956192859a8d9a628653fa4eb64ec | |
| parent | 8237e8961f34fc0902be25c05c9efa83c9b7bd91 (diff) | |
| parent | a82527e00fd535d0740deb45e39d041863116404 (diff) | |
| download | nissy-core-fac592f1ea6961c2dc8066a77679a6d0685db477.tar.gz nissy-core-fac592f1ea6961c2dc8066a77679a6d0685db477.zip | |
Merge branch 'master' of tronto.net:nissy-core into windows
Diffstat (limited to '')
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | src/utils/compilers.h | 13 | ||||
| -rw-r--r-- | src/utils/utils.h | 1 | ||||
| -rw-r--r-- | src/utils/wrapthread.h | 4 |
4 files changed, 19 insertions, 2 deletions
| @@ -40,3 +40,6 @@ tools/results | |||
| 40 | *.s | 40 | *.s |
| 41 | *.pyd | 41 | *.pyd |
| 42 | *.dll | 42 | *.dll |
| 43 | *.exp | ||
| 44 | *.lib | ||
| 45 | *.pdb | ||
diff --git a/src/utils/compilers.h b/src/utils/compilers.h new file mode 100644 index 0000000..a7d6df5 --- /dev/null +++ b/src/utils/compilers.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | #if defined(__GNUC__) | ||
| 2 | |||
| 3 | #define unused __attribute__((unused)) | ||
| 4 | |||
| 5 | #elif defined(__clang__) | ||
| 6 | |||
| 7 | #define unused __attribute__((unused)) | ||
| 8 | |||
| 9 | #else | ||
| 10 | |||
| 11 | #define unused | ||
| 12 | |||
| 13 | #endif | ||
diff --git a/src/utils/utils.h b/src/utils/utils.h index b2ab64d..383781a 100644 --- a/src/utils/utils.h +++ b/src/utils/utils.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | #include "compilers.h" | ||
| 1 | #include "dbg_log.h" | 2 | #include "dbg_log.h" |
| 2 | #include "constants.h" | 3 | #include "constants.h" |
| 3 | #include "math.h" | 4 | #include "math.h" |
diff --git a/src/utils/wrapthread.h b/src/utils/wrapthread.h index 482b67f..28654fe 100644 --- a/src/utils/wrapthread.h +++ b/src/utils/wrapthread.h | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | #define wrapthread_atomic | 3 | #define wrapthread_atomic |
| 4 | 4 | ||
| 5 | #define wrapthread_define_var_thread_t(x) char x; (void)(x) | 5 | #define wrapthread_define_var_thread_t(x) unused char x |
| 6 | #define wrapthread_define_var_mutex_t(x) char x; (void)(x) | 6 | #define wrapthread_define_var_mutex_t(x) unused char x |
| 7 | #define wrapthread_define_struct_thread_t(x) char x | 7 | #define wrapthread_define_struct_thread_t(x) char x |
| 8 | #define wrapthread_define_struct_mutex_t(x) char x | 8 | #define wrapthread_define_struct_mutex_t(x) char x |
| 9 | 9 | ||
