aboutsummaryrefslogtreecommitdiff
path: root/src/utils/compilers.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-08-12 14:54:23 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-08-12 14:54:23 +0200
commita82527e00fd535d0740deb45e39d041863116404 (patch)
treef066d56411db306150725d827fd9b810e0b6dac6 /src/utils/compilers.h
parente26d50d87cb2b1695d42f1ff8b9ab29a7d10e3aa (diff)
downloadnissy-core-a82527e00fd535d0740deb45e39d041863116404.tar.gz
nissy-core-a82527e00fd535d0740deb45e39d041863116404.zip
Some generic fixes, mainly for building on Windows
Diffstat (limited to 'src/utils/compilers.h')
-rw-r--r--src/utils/compilers.h13
1 files changed, 13 insertions, 0 deletions
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

Generated with cgit - Back to sebastiano.tronto.net