From d3566c6f374f6a91bb4f7907511bad98b38060e2 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 29 May 2014 17:15:41 +0100 Subject: wglinfo: Use _snprintf on Windows. Prevents missing snprintf with MSVC. --- src/xdemos/glinfo_common.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include "glinfo_common.h" +#ifdef _WIN32 +#define snprintf _snprintf +#endif + /** * Return the GL enum name for a numeric value. -- cgit v1.2.3