diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-10 10:20:50 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-10 10:20:50 -0500 |
commit | bdb6a983a84995c144e7452cb4052de2b649577c (patch) | |
tree | 9a5d95a76ece73755eae491a5ef0fa809fb4d30c /types.hpp | |
parent | cfe41fdfebe0913eeac99f8ac78ec52d5e00cc84 (diff) |
fix windows build; add #version to shaders
Diffstat (limited to 'types.hpp')
-rw-r--r-- | types.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |