summaryrefslogtreecommitdiff
path: root/sched.h
diff options
context:
space:
mode:
authorrpj <rpj>2005-04-01 01:28:29 +0000
committerrpj <rpj>2005-04-01 01:28:29 +0000
commitf6f9976af7a520dd1aeced4f104f4d4711f28e23 (patch)
tree1a4e65f32d585c114af33772adfaa1995ffcf093 /sched.h
parent25e5c566c5b050a04fc03851895f72750f016e4e (diff)
''
Diffstat (limited to 'sched.h')
-rw-r--r--sched.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sched.h b/sched.h
index 4a342a6..dfb8e93 100644
--- a/sched.h
+++ b/sched.h
@@ -76,10 +76,14 @@
* 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
/*