aboutsummaryrefslogtreecommitdiff
path: root/loader/vk_loader_platform.h
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-09-24 11:51:05 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-09-25 15:22:56 -0600
commitbdf6688bb7e264486298605cd1587cd73938ffe1 (patch)
treed0553ca140b5d5782cf8a58a0a4a030b916974e2 /loader/vk_loader_platform.h
parente82ce7a40f8c5c3fcc4abc8c3d80f8feea6de757 (diff)
downloadusermoji-bdf6688bb7e264486298605cd1587cd73938ffe1.tar.xz
misc: Move snprintf define to vk_sdk_platform.h
Windows doesn't define snprintf so we need to #define it to what Windows does use in our SDK platform header.
Diffstat (limited to 'loader/vk_loader_platform.h')
-rw-r--r--loader/vk_loader_platform.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h
index 9a690f5f..96021561 100644
--- a/loader/vk_loader_platform.h
+++ b/loader/vk_loader_platform.h
@@ -233,16 +233,6 @@ using namespace std;
#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)
{