diff options
author | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-08-29 09:35:45 (GMT) |
---|---|---|
committer | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-08-29 09:35:45 (GMT) |
commit | 89235e9873b84662bde1e2f948a0d20f64b10aed (patch) | |
tree | 2433aa13328052c10c818c94f13f4cc3d07c7fcd /configure.ac | |
parent | c79bffe0a0e6c587473708c778b2744c37d8abba (diff) | |
download | blt-89235e9873b84662bde1e2f948a0d20f64b10aed.zip blt-89235e9873b84662bde1e2f948a0d20f64b10aed.tar.gz blt-89235e9873b84662bde1e2f948a0d20f64b10aed.tar.bz2 |
Set MSVC cflags on Cygwin when the compiler is not GCC
The GCC variable is set by autoconf and inspected by TEA for this same purpose.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 7e2d152..72d0fc5 100644 --- a/configure.ac +++ b/configure.ac @@ -128,9 +128,9 @@ generic/tkbltDecls.h ]) TEA_ADD_INCLUDES([]) TEA_ADD_LIBS([-lstdc++]) -#if test "windows" = "${TEA_PLATFORM}"; then -#TEA_ADD_CFLAGS([-TP -EHsc -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES]) -#fi +if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; 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]) |