summaryrefslogtreecommitdiff
path: root/semaphore.h
diff options
context:
space:
mode:
authorrpj <rpj>2005-04-01 00:55:20 +0000
committerrpj <rpj>2005-04-01 00:55:20 +0000
commitf63f8cd4f69317850dd5e8d6302acf3fbf849332 (patch)
tree6b4f380a003b5cd5f9759e2143c456bcf0c78709 /semaphore.h
parente01f06b3309760ffde46829bbee2c7234fd521c3 (diff)
''
Diffstat (limited to 'semaphore.h')
-rw-r--r--semaphore.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/semaphore.h b/semaphore.h
index 7e71089..a3330a6 100644
--- a/semaphore.h
+++ b/semaphore.h
@@ -75,13 +75,16 @@
* do NOT define PTW32_BUILD, and then the variables/functions will
* be imported correctly.
*/
-#ifdef PTW32_BUILD
-# define PTW32_DLLPORT __declspec (dllexport)
+#ifndef PTW32_STATIC_LIB
+# ifdef PTW32_BUILD
+# define PTW32_DLLPORT __declspec (dllexport)
+# else
+# define PTW32_DLLPORT __declspec (dllimport)
+# endif
#else
-# define PTW32_DLLPORT __declspec (dllimport)
+# define PTW32_DLLPORT
#endif
-
/*
* This is a duplicate of what is in the autoconf config.h,
* which is only used when building the pthread-win32 libraries.