Simplify _declspec macro when using gcc under win32 unlabeled-3.9.24
authorcls%seawood.org
Thu, 05 Aug 1999 00:56:52 +0000
branchunlabeled-3.9.24
changeset 738 0a2f5b9992267646a03b05e6b83f4376e6928019
parent 724 29598e42ae83f6db6d9d5c97fd6f74e3cdba7610
child 749 60c9ba5066febe5bd4eb3be1cac9b167c2cf98cf
push idunknown
push userunknown
push dateunknown
Simplify _declspec macro when using gcc under win32
pr/include/prtypes.h
--- a/pr/include/prtypes.h
+++ b/pr/include/prtypes.h
@@ -59,26 +59,23 @@
 **   in dowhim.c
 **     PR_IMPLEMENT( void ) DoWhatIMean( void ) { return; }
 **
 **
 ***********************************************************************/
 #if defined(WIN32)
 
 #if defined(__GNUC__)
-#define PR_EXTERN(__type) extern __declspec(dllexport) __type
-#define PR_IMPLEMENT(__type) __declspec(dllexport) __type
-#define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type
-#define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type
-#else
+#define _declspec(x) __declspec(x)
+#endif
+
 #define PR_EXTERN(__type) extern _declspec(dllexport) __type
 #define PR_IMPLEMENT(__type) _declspec(dllexport) __type
 #define PR_EXTERN_DATA(__type) extern _declspec(dllexport) __type
 #define PR_IMPLEMENT_DATA(__type) _declspec(dllexport) __type
-#endif
 
 #define PR_CALLBACK
 #define PR_CALLBACK_DECL
 #define PR_STATIC_CALLBACK(__x) static __x
 
 #elif defined(XP_BEOS)
 #define PR_EXTERN(__type) extern __declspec(dllexport) __type
 #define PR_IMPLEMENT(__type) __declspec(dllexport) __type