summaryrefslogtreecommitdiff
path: root/types.hpp
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-10 10:20:50 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-10 10:20:50 -0500
commitbdb6a983a84995c144e7452cb4052de2b649577c (patch)
tree9a5d95a76ece73755eae491a5ef0fa809fb4d30c /types.hpp
parentcfe41fdfebe0913eeac99f8ac78ec52d5e00cc84 (diff)
fix windows build; add #version to shaders
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/types.hpp b/types.hpp
index 5f36514..b97e037 100644
--- a/types.hpp
+++ b/types.hpp
@@ -1,6 +1,9 @@
#ifndef TYPES_H_
#define TYPES_H_
+#if _WIN32
+#include <windows.h>
+#endif
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
@@ -61,9 +64,9 @@ typedef int64_t i64;
#if DEBUG
#if __unix__
-#define debug_println(...) printf(__VA_ARGS__), printf("\n")
+#define logln(...) printf(__VA_ARGS__), printf("\n")
#else // __unix__
-static void debug_println(char const *fmt, ...) {
+static void logln(char const *fmt, ...) {
char buf[256];
va_list args;
va_start(args, fmt);
@@ -74,7 +77,7 @@ static void debug_println(char const *fmt, ...) {
}
#endif // __unix__
#else // DEBUG
-#define debug_println(...)
+#define logln(...)
#endif