Windows doesn't define snprintf so we need to #define
it to what Windows does use in our SDK platform header.
# undef inline
# define inline __inline
# endif // __cplusplus
+
+// C99:
+// Microsoft didn't implement C99 in Visual Studio; but started adding it with
+// VS2013. However, VS2013 still didn't have snprintf(). The following is a
+// work-around (Note: The _CRT_SECURE_NO_WARNINGS macro must be set in the
+// "CMakeLists.txt" file).
+#define snprintf _snprintf
+#define strdup _strdup
+
#endif // _WIN32
#endif // VK_SDK_PLATFORM_H
#include <vk_layer.h>
#include <iostream>
#include "vk_layer_config.h"
-#include "vk_loader_platform.h"
+#include "vk_sdk_platform.h"
#define MAX_CHARS_PER_LINE 4096
#define DEFAULT_VK_LAYERS_PATH "C:\\Windows\\System32;C:\\Windows\\SysWow64"
#define LAYERS_PATH_ENV "VK_LAYER_PATH"
-// C99:
-// Microsoft didn't implement C99 in Visual Studio; but started adding it with
-// VS2013. However, VS2013 still didn't have snprintf(). The following is a
-// work-around (Note: The _CRT_SECURE_NO_WARNINGS macro must be set in the
-// "CMakeLists.txt" file).
-#define snprintf _snprintf
-#define strdup _strdup
-#define PRINTF_SIZE_T_SPECIFIER "%Iu"
-
-
// File IO
static bool loader_platform_file_exists(const char *path)
{