summaryrefslogtreecommitdiff
path: root/include/rune_types.h
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-08-30 01:31:27 -0500
committerDanny Holman <dholman@gymli.org>2024-08-30 01:31:27 -0500
commit1ce6031a42d22a0f2be566e1873377ab2cda66c8 (patch)
treee1d38c3458a8202391cd1b017de0ae6bc0661ca7 /include/rune_types.h
parent6b13ea53aeedb646b082a13bf16f67f8556087ae (diff)
Makefile: retool the build systemv0.55
Retool the build system to be more modular and more flexible. Move all subsystems into separate directories and create make.config files that will conditionally compile based on information from the root Makefile. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/rune_types.h')
-rw-r--r--include/rune_types.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/include/rune_types.h b/include/rune_types.h
deleted file mode 100644
index 8fada14..0000000
--- a/include/rune_types.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef RUNE_TYPES_H
-#define RUNE_TYPES_H
-
-#include <assert.h>
-#include <stdint.h>
-
-#if defined(__clang__) || defined(__gcc__)
- #define STATIC_ASSERT _Static_assert
-#else
- #define STATIC_ASSERT static_assert
-#endif
-
-STATIC_ASSERT(sizeof(uint8_t) == 1, "Expected uint8_t to be 1 byte");
-STATIC_ASSERT(sizeof(uint16_t) == 2, "Expected uint16_t to be 2 bytes");
-STATIC_ASSERT(sizeof(uint32_t) == 4, "Expected uint32_t to be 4 bytes");
-STATIC_ASSERT(sizeof(uint64_t) == 8, "Expected uint64_t to be 8 bytes");
-
-STATIC_ASSERT(sizeof(int8_t) == 1, "Expected int8_t to be 1 byte");
-STATIC_ASSERT(sizeof(int16_t) == 2, "Expected int16_t to be 2 bytes");
-STATIC_ASSERT(sizeof(int32_t) == 4, "Expected int32_t to be 4 bytes");
-STATIC_ASSERT(sizeof(int64_t) == 8, "Expected int64_t to be 8 bytes");
-
-STATIC_ASSERT(sizeof(float) == 4, "Expected float to be 4 bytes");
-STATIC_ASSERT(sizeof(double) == 8, "Expected double to be 8 bytes");
-
-#ifdef REXPORT
- #ifdef _MSC_VER
- #define RAPI __declspec(dllexport)
- #else
- #define RAPI __attribute__((visibility("default")))
- #endif
-#else
- #ifdef _MSC_VER
- #define RAPI __declspec(dllexport)
- #else
- #define RAPI
- #endif
-#endif
-
-#endif