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
......@@ -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
......
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