port: rework config system a bit

This commit is contained in:
fgsfds committed 2023-11-04 02:08:44 +01:00
1 parent 479c0335f3
commit fbae610a3b
12 files changed
+238 -253

No files matched your search

+8 -1
View File
@@ -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