From 6dad5a4e8d5c4ea90bb9342e329defb9c8eb2092 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 12 Aug 2010 17:57:07 -0700 Subject: glsl2: Include imports.h to get snprintf wrapper for MSVC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Fonseca --- src/mesa/main/imports.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/main') diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 22ac26e15e9..6c2ef52d35b 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -578,6 +578,12 @@ _mesa_error( __GLcontext *ctx, GLenum error, const char *fmtString, ... ); extern void _mesa_debug( const __GLcontext *ctx, const char *fmtString, ... ); + +#if defined(_MSC_VER) && !defined(snprintf) +#define snprintf _snprintf +#endif + + #ifdef __cplusplus } #endif -- cgit v1.2.3