diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2015-02-11 14:24:02 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobin@lunarg.com> | 2015-02-11 16:36:56 -0700 |
| commit | 4f4a34bb1ee88b4d64880670409193d2e372b425 (patch) | |
| tree | d5c3a4839f99bc91fcc72ac9ddb417466ccea3c4 /loader | |
| parent | 22ce937d76deb6b2f0a6ec1275f2878e07f8a248 (diff) | |
| download | usermoji-4f4a34bb1ee88b4d64880670409193d2e372b425.tar.xz | |
layers: Fixes for Windows build
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/loader_platform.h | 3 |
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. |
