glsl2: Include imports.h to get snprintf wrapper for MSVC
Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
committed by
José Fonseca
parent
44a6c13ac3
commit
6dad5a4e8d
@@ -29,6 +29,7 @@
|
||||
#include "glsl_types.h"
|
||||
#include "builtin_types.h"
|
||||
extern "C" {
|
||||
#include "main/imports.h"
|
||||
#include "program/hash_table.h"
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
* and log2 operations.
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
#include "main/imports.h"
|
||||
#include "ir.h"
|
||||
#include "glsl_types.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
|
||||
|
||||
Reference in New Issue
Block a user