summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-20 10:26:50 (GMT)
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-20 10:27:02 (GMT)
commit642cb1492823506722719e74e8edf03445f9410b (patch)
tree7273b5e43cdef0575c50aa58b282a0ed47cfcc8b /configure.ac
parent1a9e6fbab4255c85ceee5891b705a31feccc4413 (diff)
downloadblt-642cb1492823506722719e74e8edf03445f9410b.zip
blt-642cb1492823506722719e74e8edf03445f9410b.tar.gz
blt-642cb1492823506722719e74e8edf03445f9410b.tar.bz2
Add Windows-specific CFLAGS
-TP: C++ -EHsc: specify exception handling -D_USE_MATH_DEFINES: cmath constants -D_CRT_SECURE_NO_WARNINGS: ignore *strncpy*/*printf* warnings; alternatives have different signatures.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3f01135..5fe1190 100644
--- a/configure.ac
+++ b/configure.ac
@@ -128,7 +128,9 @@ generic/tkbltDecls.h
])
TEA_ADD_INCLUDES([])
TEA_ADD_LIBS([-lstdc++])
-TEA_ADD_CFLAGS([])
+if test "windows" = "${TEA_PLATFORM}"; then
+TEA_ADD_CFLAGS([-TP -EHsc -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES])
+fi
TEA_ADD_STUB_SOURCES([tkbltStubLib.C])
TEA_ADD_TCL_SOURCES([library/graph.tcl])