From 4f4a34bb1ee88b4d64880670409193d2e372b425 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Wed, 11 Feb 2015 14:24:02 -0700 Subject: layers: Fixes for Windows build --- loader/loader_platform.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'loader/loader_platform.h') 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. -- cgit v1.2.3