aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build-data/cc/clang.txt1
-rw-r--r--src/build-data/cc/gcc.txt3
-rw-r--r--src/build-data/makefile.in2
-rw-r--r--src/build-data/os/mingw.txt5
-rw-r--r--src/build-data/os/netbsd.txt4
-rw-r--r--src/build-data/os/qnx.txt4
-rw-r--r--src/build-data/os/windows.txt4
7 files changed, 18 insertions, 5 deletions
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt
index c0ad6e483..6614d5a63 100644
--- a/src/build-data/cc/clang.txt
+++ b/src/build-data/cc/clang.txt
@@ -79,5 +79,4 @@ ppc64 -> "-m64"
macos -> "-stdlib=libc++"
ios -> "-stdlib=libc++"
-netbsd -> "-D_NETBSD_SOURCE"
</mach_abi_linking>
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt
index b546d9ce9..f495af4e6 100644
--- a/src/build-data/cc/gcc.txt
+++ b/src/build-data/cc/gcc.txt
@@ -91,7 +91,6 @@ x86_32 -> "-m32"
x86_64 -> "-m64"
x32 -> "-mx32"
-netbsd -> "-D_NETBSD_SOURCE"
-qnx -> "-fexceptions -D_QNX_SOURCE"
+qnx -> "-fexceptions"
cygwin -> "-U__STRICT_ANSI__"
</mach_abi_linking>
diff --git a/src/build-data/makefile.in b/src/build-data/makefile.in
index 0e877c680..1bd3c83aa 100644
--- a/src/build-data/makefile.in
+++ b/src/build-data/makefile.in
@@ -12,7 +12,7 @@ PYTHON_EXE = %{python_exe}
# Compiler Flags
ABI_FLAGS = %{cc_sysroot} %{cxx_abi_flags}
-LANG_FLAGS = %{cc_lang_flags}
+LANG_FLAGS = %{cc_lang_flags} %{os_feature_macros}
CXXFLAGS = %{cc_compile_flags}
WARN_FLAGS = %{cc_warning_flags}
LIB_FLAGS = %{lib_flags}
diff --git a/src/build-data/os/mingw.txt b/src/build-data/os/mingw.txt
index bbe17e084..8394eade6 100644
--- a/src/build-data/os/mingw.txt
+++ b/src/build-data/os/mingw.txt
@@ -3,12 +3,15 @@ program_suffix .exe
obj_suffix o
static_suffix a
-
install_root /mingw
header_dir include
lib_dir lib
doc_dir share/doc
+<feature_macros>
+_WIN32_WINNT=0x0600
+</feature_macros>
+
<aliases>
msys
mingw32.*
diff --git a/src/build-data/os/netbsd.txt b/src/build-data/os/netbsd.txt
index 6ff7529ff..cbfd8659e 100644
--- a/src/build-data/os/netbsd.txt
+++ b/src/build-data/os/netbsd.txt
@@ -13,3 +13,7 @@ sockets
threads
filesystem
</target_features>
+
+<feature_macros>
+_NETBSD_SOURCE
+</feature_macros>
diff --git a/src/build-data/os/qnx.txt b/src/build-data/os/qnx.txt
index 1cf671ce7..ef5c0872b 100644
--- a/src/build-data/os/qnx.txt
+++ b/src/build-data/os/qnx.txt
@@ -10,3 +10,7 @@ sockets
threads
filesystem
</target_features>
+
+<feature_macros>
+_QNX_SOURCE
+</feature_macros>
diff --git a/src/build-data/os/windows.txt b/src/build-data/os/windows.txt
index d11bacc37..edd4541d6 100644
--- a/src/build-data/os/windows.txt
+++ b/src/build-data/os/windows.txt
@@ -21,6 +21,10 @@ soname_pattern_base "{libname}.dll"
install_root c:\\Botan
doc_dir docs
+<feature_macros>
+_WIN32_WINNT=0x0600
+</feature_macros>
+
<target_features>
win32
winsock2