diff options
author | rpj <rpj> | 2005-04-01 01:28:29 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-04-01 01:28:29 +0000 |
commit | f6f9976af7a520dd1aeced4f104f4d4711f28e23 (patch) | |
tree | 1a4e65f32d585c114af33772adfaa1995ffcf093 /semaphore.h | |
parent | 25e5c566c5b050a04fc03851895f72750f016e4e (diff) |
''
Diffstat (limited to 'semaphore.h')
-rw-r--r-- | semaphore.h | 11 |
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. |