summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
Diffstat (limited to 'private.c')
-rw-r--r--private.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/private.c b/private.c
index d7b44c9..3a4a0da 100644
--- a/private.c
+++ b/private.c
@@ -163,7 +163,9 @@ _pthread_threadStart (ThreadParms * threadParms)
#else /* __cplusplus */
-#error Warning: Compile __FILE__ as C++ or thread cancellation will not work.
+#if defined(__CYGWIN__) || defined(__CYGWIN32__)
+#warning Compile __FILE__ as C++ or thread cancellation will not work properly.
+#endif
/*
* Run the caller's routine;