projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59ac176
)
Don't use libstdc++ wrappers for stdlib.h (#5304)
author
Jürgen Hötzel
<juergen@hoetzel.info>
Mon, 30 May 2016 09:45:49 +0000
(11:45 +0200)
committer
Jan Vorlicek
<janvorli@microsoft.com>
Mon, 30 May 2016 09:45:49 +0000
(11:45 +0200)
This prevents #undef of min/max macros. Refs #5006.
src/pal/src/include/pal/palinternal.h
patch
|
blob
|
history
diff --git
a/src/pal/src/include/pal/palinternal.h
b/src/pal/src/include/pal/palinternal.h
index
4c01be8
..
fdebc8d
100644
(file)
--- a/
src/pal/src/include/pal/palinternal.h
+++ b/
src/pal/src/include/pal/palinternal.h
@@
-567,6
+567,10
@@
function_name() to call the system's implementation
#endif
#include <ctype.h>
+// Don't use C++ wrappers for stdlib.h
+// https://gcc.gnu.org/ml/libstdc++/2016-01/msg00025.html
+#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS 1
+
#define _WITH_GETLINE
#include <stdio.h>
#include <stdlib.h>