summaryrefslogtreecommitdiff
path: root/Threads.tmpl
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:20 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:20 +0000
commit272f68b2bffd736cede856a96231afe237261c8d (patch)
tree735f02d872ec1c4e704c26240c1755b81565b5cb /Threads.tmpl
parent978fce56ab5d93678618fad722f69c464df12c3f (diff)
Diffstat (limited to 'Threads.tmpl')
-rw-r--r--Threads.tmpl26
1 files changed, 23 insertions, 3 deletions
diff --git a/Threads.tmpl b/Threads.tmpl
index 537dab1..45e46ea 100644
--- a/Threads.tmpl
+++ b/Threads.tmpl
@@ -1,5 +1,9 @@
XCOMM $Xorg: Threads.tmpl,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
+
+
+XCOMM $XFree86: xc/config/cf/Threads.tmpl,v 3.4 2002/11/14 21:01:14 tsi Exp $
+
/*
* For a multi-threaded application or library,
* Define LocalThreadsDefines in your Imakefile (unless you like the
@@ -23,6 +27,10 @@ XCOMM $Xorg: Threads.tmpl,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
#endif
#endif
+#ifndef HasCThreads
+#define HasCThreads NO
+#endif
+
#ifndef ThreadTypeDefines
#if HasCThreads
#define ThreadTypeDefines -DCTHREADS
@@ -50,20 +58,32 @@ XCOMM $Xorg: Threads.tmpl,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
#define ThreadPreStdAPIDefines /* nominally for POSIX P1003.4a (Draft 4) API */
#endif
#ifndef CplusplusSystemMTDefines
-#define CplusplusSystemMTDefines /**/
+# ifdef SystemMTDefines
+# define CplusplusSystemMTDefines SystemMTDefines
+# else
+# define CplusplusSystemMTDefines /**/
+# endif
#endif
#ifndef ThreadsCompileFlags
#define ThreadsCompileFlags /**/
#endif
#ifndef ThreadsCplusplusCompileFlags
-#define ThreadsCplusplusCompileFlags /**/
+# ifdef ThreadsCompileFlags
+# define ThreadsCplusplusCompileFlags ThreadsCompileFlags
+# else
+# define ThreadsCplusplusCompileFlags /**/
+# endif
#endif
#ifndef ThreadsLibraries
#define ThreadsLibraries /**/
#endif
#ifndef ThreadsCplusplusLibraries
-#define ThreadsCplusplusLibraries /**/
+# ifdef ThreadsLibraries
+# define ThreadsCplusplusLibraries ThreadsLibraries
+# else
+# define ThreadsCplusplusLibraries /**/
+# endif
#endif
#ifndef ThreadsLoadFlags
#define ThreadsLoadFlags ThreadsCompileFlags