mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 03:20:09 +01:00
glsl2: Include imports.h to get snprintf wrapper for MSVC
Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
44a6c13ac3
commit
6dad5a4e8d
3 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue