projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1874cb7
)
mesa: Fix Cygwin build with llvm enabled.
author
Vinson Lee
<vlee@vmware.com>
Fri, 23 Jul 2010 23:24:35 +0000
(16:24 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 23 Jul 2010 23:24:35 +0000
(16:24 -0700)
On Cygwin locale_t in not available but 'llvm-config --cppflags' adds
the compiler flag -D_GNU_SOURCE to the build.
src/mesa/main/imports.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.c
b/src/mesa/main/imports.c
index 25080db40c43f3b1ad8af3018b9c1ba2c7c05104..c399351096717ece4f6bde12e25e9332e2fe442a 100644
(file)
--- a/
src/mesa/main/imports.c
+++ b/
src/mesa/main/imports.c
@@
-756,7
+756,7
@@
_mesa_strdup( const char *s )
float
_mesa_strtof( const char *s, char **end )
{
-#if
def _GNU_SOURCE
+#if
defined(_GNU_SOURCE) && !defined(__CYGWIN__)
static locale_t loc = NULL;
if (!loc) {
loc = newlocale(LC_CTYPE_MASK, "C", NULL);