summaryrefslogtreecommitdiffstats
path: root/src/misc.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-11-21 10:28:32 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2015-11-21 10:28:32 +0100
commit2fb0921edc802de8c6fee18c5a940e33d488be4d (patch)
treef72ddd0edda2ea6aab0d530f0e9283224bdc94af /src/misc.c
parent74cf009aa0a1b1ff5404c5db0f1d49fdae0d31b2 (diff)
Distinguish cygwin 32 bits from cygwin
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c
index 34265b1..0fb5f56 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -245,6 +245,12 @@ const char *get_compiler(void)
snprintf(buffer, sizeof(buffer) - 1, "Borland C++ %i",__BORLANDC__);
# elif defined(__MINGW32__)
snprintf(buffer, sizeof(buffer) - 1, "GCC %i.%i, MinGW %i.%i", __GNUC__, __GNUC_MINOR__, __MINGW32_MAJOR_VERSION, __MINGW32_MINOR_VERSION);
+# elif defined(__CYGWIN32__)
+#if defined(CYGWIN_VERSION_DLL_MAJOR) && defined(CYGWIN_VERSION_DLL_MINOR)
+ snprintf(buffer, sizeof(buffer) - 1, "GCC %i.%i, Cygwin32 %i.%i", __GNUC__, __GNUC_MINOR__, CYGWIN_VERSION_DLL_MAJOR, CYGWIN_VERSION_DLL_MINOR);
+#else
+ snprintf(buffer, sizeof(buffer) - 1, "GCC %i.%i, Cygwin32", __GNUC__, __GNUC_MINOR__);
+#endif
# elif defined(__CYGWIN__)
#if defined(CYGWIN_VERSION_DLL_MAJOR) && defined(CYGWIN_VERSION_DLL_MINOR)
snprintf(buffer, sizeof(buffer) - 1, "GCC %i.%i, Cygwin %i.%i", __GNUC__, __GNUC_MINOR__, CYGWIN_VERSION_DLL_MAJOR, CYGWIN_VERSION_DLL_MINOR);