Skip to content
Snippets Groups Projects
Commit 64af11ba authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Add hack to work around an undef of min() and max() in...

Add hack to work around an undef of min() and max() in x86_64-pc-linux-gnu/bits/c++config.h for GCC 6 and above, only a problem when we build with g++
parent fef53f1b
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,10 @@ if test "x$ax_enable_debug" != "xno"; then
AC_DEFINE([SWIFT_DEVELOP_MODE],1,[Enable developer code options])
fi
# C++ in GCC 6 and above has an issue with undefined the min() and max()
# macros. This hack works around that.
AC_DEFINE([_GLIBCXX_INCLUDE_NEXT_C_HEADERS],1,[Hack for min() and max() using g++ 6+])
# Enable POSIX and platform extension preprocessor macros.
AC_USE_SYSTEM_EXTENSIONS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment