summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
authorrpj <rpj>1999-01-13 20:53:49 +0000
committerrpj <rpj>1999-01-13 20:53:49 +0000
commitd0b36781d64a52a93ffec89d7b89a243793ea835 (patch)
tree39cbab962690a0561820b7574e044e8e983d0c30 /private.c
parentbc374000d4dda28009ceb1f03a5514687be8904c (diff)
Thu Jan 14 14:27:13 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* cleanup.c: Correct _cplusplus to __cplusplus wherever used. * Makefile.in: Add CC=g++ and add -fhandle-exceptions to CFLAGS. The derived Makefile will compile all units of the package as C++ so that those which include try/catch exception handling should work properly. The package should compile ok if CC=gcc, however, exception handling will not be included and thus thread cancellation, for example, will not work. * cleanup.c (_pthread_pop_cleanup): Add #warning to compile this file as C++ if using a cygwin32 environment. Perhaps the whole package should be compiled using g++ under cygwin. * private.c (_pthread_threadStart): Change #error directive into #warning and bracket for __CYGWIN__ and derivative compilers.
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;