mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
port: rework config system a bit
This commit is contained in:
1 parent
479c0335f3
commit
fbae610a3b
12 files changed
+238
-253
No files matched your search
@@ -49,7 +49,7 @@
|
||||
|
||||
// byteswap macros
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define PD_BSWAP16(x) __builtin_bswap16(x)
|
||||
#define PD_BSWAP32(x) __builtin_bswap32(x)
|
||||
#define PD_BSWAP64(x) __builtin_bswap64(x)
|
||||
@@ -82,4 +82,11 @@
|
||||
#define PD_LEPTR(x) PD_LE32(x)
|
||||
#endif
|
||||
|
||||
// module constructor function attribute
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define PD_CONSTRUCTOR __attribute__((constructor))
|
||||
#else
|
||||
#error "Implement PD_CONSTRUCTOR macro for your compiler."
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user