From bdb6a983a84995c144e7452cb4052de2b649577c Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Thu, 10 Dec 2020 10:20:50 -0500 Subject: fix windows build; add #version to shaders --- types.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'types.hpp') 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 +#endif #include #include #include @@ -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 -- cgit v1.2.3