glsl2: Include imports.h to get snprintf wrapper for MSVC

Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
Ian Romanick 2010-08-12 17:57:07 -07:00 committed by José Fonseca
parent 44a6c13ac3
commit 6dad5a4e8d
3 changed files with 8 additions and 1 deletions

View file

@ -29,6 +29,7 @@
#include "glsl_types.h"
#include "builtin_types.h"
extern "C" {
#include "main/imports.h"
#include "program/hash_table.h"
}

View file

@ -29,7 +29,7 @@
* and log2 operations.
*/
#include <math.h>
#include "main/imports.h"
#include "ir.h"
#include "glsl_types.h"

View file

@ -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