diff options
author | Ian Romanick <[email protected]> | 2010-08-12 17:57:07 -0700 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-08-23 20:55:50 +0100 |
commit | 6dad5a4e8d5c4ea90bb9342e329defb9c8eb2092 (patch) | |
tree | c7f239a82a4307fb8a116d65551d6ab60de3797e /src/mesa/main | |
parent | 44a6c13ac33fc00fc4d0cf7435ac23eaa8058300 (diff) |
glsl2: Include imports.h to get snprintf wrapper for MSVC
Signed-off-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/imports.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |