summaryrefslogtreecommitdiffhomepage
path: root/src/os.h
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2024-08-03 23:40:31 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2024-08-23 20:37:37 +0100
commit83da606072ce272eb053d4e1497d77e647cfecae (patch)
tree71d0110881ff8685184c5f4ab720cc8d49c24678 /src/os.h
parentacbd30e0427b16f885f96aed59881ec04eff25bc (diff)
Revise syntax macros and add a ton of branch hints
My new programming style is branch hints. All non-confusing branches must be hinted when I can be bothered. It's faster, sometimes, maybe. Also, start trying to use more signed sizes in at least some of the places where it makes sense. Unsigned sizes are surprisingly error-prone!
Diffstat (limited to 'src/os.h')
-rw-r--r--src/os.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/os.h b/src/os.h
index b599523..cbecf2c 100644
--- a/src/os.h
+++ b/src/os.h
@@ -24,9 +24,6 @@
#include <wchar.h> // XXX: there's kind of a lot of junk in this header!
-#define IMPORT __declspec(dllimport) // only needed for variables
-#define EXPORT __declspec(dllexport)
-
typedef unsigned short os_char;
#define _OS_CAT(x, y) x##y
#define OS_LIT(x) _OS_CAT(L, x)
@@ -75,13 +72,6 @@ typedef unsigned short os_char;
#include <errno.h> // meh
-#define IMPORT
-#ifdef __GNUC__
-#define EXPORT __attribute__((visibility("default"))
-#else
-#define EXPORT int exp[-!!"compiler needs a way to export symbols!"];
-#endif
-
// trying to avoid pulling in unnecessary headers as much as possible: define
// our own constants for os_mprot() / mprotect()
#if defined(__linux__) // apparently linux is pretty much the sole oddball here!