Commit 653ddaab authored by Aras Pranckevicius's avatar Aras Pranckevicius Committed by Brian Paul
Browse files

glsl/mesa: fixes for MSVC


Signed-off-by: default avatarBrian Paul <brianp@vmware.com>
parent f301932d
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include "glcpp.h" #include "glcpp.h"
#include "main/core.h" /* for isblank() on MSVC */
void void
glcpp_error (YYLTYPE *locp, glcpp_parser_t *parser, const char *fmt, ...) glcpp_error (YYLTYPE *locp, glcpp_parser_t *parser, const char *fmt, ...)
......
...@@ -148,6 +148,7 @@ static INLINE float truncf(float x) { return x < 0.0f ? ceilf(x) : floorf(x); } ...@@ -148,6 +148,7 @@ static INLINE float truncf(float x) { return x < 0.0f ? ceilf(x) : floorf(x); }
static INLINE float exp2f(float x) { return powf(2.0f, x); } static INLINE float exp2f(float x) { return powf(2.0f, x); }
static INLINE float log2f(float x) { return logf(x) * 1.442695041f; } static INLINE float log2f(float x) { return logf(x) * 1.442695041f; }
static INLINE int isblank(int ch) { return ch == ' ' || ch == '\t'; } static INLINE int isblank(int ch) { return ch == ' ' || ch == '\t'; }
#define strtoll(p, e, b) _strtoi64(p, e, b)
#endif #endif
/*@}*/ /*@}*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment