diff options
author | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-20 10:26:50 (GMT) |
---|---|---|
committer | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-20 10:27:02 (GMT) |
commit | 642cb1492823506722719e74e8edf03445f9410b (patch) | |
tree | 7273b5e43cdef0575c50aa58b282a0ed47cfcc8b /configure.ac | |
parent | 1a9e6fbab4255c85ceee5891b705a31feccc4413 (diff) | |
download | blt-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.ac | 4 |
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]) |