diff options
author | Paul Berry <[email protected]> | 2013-10-26 10:25:46 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-10-29 11:10:56 -0700 |
commit | be63803b0c1efab19d20be3274f92fb55ead7958 (patch) | |
tree | 74319257112743e334610a610c672c66bd1afcbd /src/mesa/main | |
parent | e4195acab57a6ab7a604073c46e72b7a49da9e21 (diff) |
glsl: Generalize MSVC fix for strcasecmp().
This will let us use strcasecmp() from anywhere inside Mesa without
having to worry about the fact that it doesn't exist in MSVC.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/imports.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 53e40b44546..d79e2a339f3 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -141,6 +141,7 @@ static inline float acoshf(float x) { return logf(x + sqrtf(x * x - 1.0f)); } static inline float atanhf(float x) { return (logf(1.0f + x) - logf(1.0f - x)) / 2.0f; } static inline int isblank(int ch) { return ch == ' ' || ch == '\t'; } #define strtoll(p, e, b) _strtoi64(p, e, b) +#define strcasecmp(s1, s2) _stricmp(s1, s2) #endif /*@}*/ |