aboutsummaryrefslogtreecommitdiff
path: root/loader/loader_platform.h
diff options
context:
space:
mode:
authorTobin Ehlis <tobin@lunarg.com>2015-02-11 14:24:02 -0700
committerTobin Ehlis <tobin@lunarg.com>2015-02-11 16:36:56 -0700
commit4f4a34bb1ee88b4d64880670409193d2e372b425 (patch)
treed5c3a4839f99bc91fcc72ac9ddb417466ccea3c4 /loader/loader_platform.h
parent22ce937d76deb6b2f0a6ec1275f2878e07f8a248 (diff)
downloadusermoji-4f4a34bb1ee88b4d64880670409193d2e372b425.tar.xz
layers: Fixes for Windows build
Diffstat (limited to 'loader/loader_platform.h')
-rw-r--r--loader/loader_platform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/loader/loader_platform.h b/loader/loader_platform.h
index e567700b..98c2d39b 100644
--- a/loader/loader_platform.h
+++ b/loader/loader_platform.h
@@ -64,6 +64,8 @@
// C99:
#define STATIC_INLINE static inline
+#define PRINTF_SIZE_T_SPECIFIER "%zu"
+
// Dynamic Loading:
typedef void * loader_platform_dl_handle;
static inline loader_platform_dl_handle loader_platform_open_library(const char* libPath)
@@ -171,6 +173,7 @@ using namespace std;
// "CMakeLists.txt" file).
#define snprintf _snprintf
#define STATIC_INLINE static
+#define PRINTF_SIZE_T_SPECIFIER "%Iu"
// Microsoft also doesn't have basename(). Paths are different on Windows, and
// so this is just a temporary solution in order to get us compiling, so that we
// can test some scenarios, and develop the correct solution for Windows.