summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-05-29 17:15:41 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-05-29 17:15:41 +0100
commitd3566c6f374f6a91bb4f7907511bad98b38060e2 (patch)
treeed2aaae43b5034a0c06850ee5fb835253a356b5e
parent57c36884cbcb0d6197d3feb001f53be0789f59b9 (diff)
wglinfo: Use _snprintf on Windows.
Prevents missing snprintf with MSVC.
-rw-r--r--src/xdemos/glinfo_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xdemos/glinfo_common.c b/src/xdemos/glinfo_common.c
index e6517d7b..3cbe4edc 100644
--- a/src/xdemos/glinfo_common.c
+++ b/src/xdemos/glinfo_common.c
@@ -25,6 +25,10 @@
#include <string.h>
#include "glinfo_common.h"
+#ifdef _WIN32
+#define snprintf _snprintf
+#endif
+
/**
* Return the GL enum name for a numeric value.