summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TSRM/TSRM.h9
-rw-r--r--TSRM/tsrm_config_common.h6
2 files changed, 7 insertions, 8 deletions
diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h
index b4309f6df6..5e3411b8f7 100644
--- a/TSRM/TSRM.h
+++ b/TSRM/TSRM.h
@@ -13,14 +13,11 @@
#ifndef TSRM_H
#define TSRM_H
-/* #ifndef WIN32 */
-#ifndef WIN32
-# include <tsrm_config.h>
-#endif
-
-#ifdef WIN32
+#if !defined(__CYGWIN__) && defined(WIN32)
# define TSRM_WIN32
# include "tsrm_config.w32.h"
+#else
+# include <tsrm_config.h>
#endif
#ifdef TSRM_WIN32
diff --git a/TSRM/tsrm_config_common.h b/TSRM/tsrm_config_common.h
index 62a7c8efc0..0c6a2a183f 100644
--- a/TSRM/tsrm_config_common.h
+++ b/TSRM/tsrm_config_common.h
@@ -1,8 +1,10 @@
#ifndef TSRM_CONFIG_COMMON_H
#define TSRM_CONFIG_COMMON_H
-#if WINNT|WIN32
-# define TSRM_WIN32
+#ifndef __CYGWIN__
+# if WINNT|WIN32
+# define TSRM_WIN32
+# endif
#endif
#ifdef TSRM_WIN32