Bug 301064
authorwtchang%redhat.com
Wed, 05 Apr 2006 21:02:25 +0000
changeset 3623 602885a36d8dfc904937d902d723032c1b68fa8c
parent 3622 590c999afe1441d8df5fd78ef41f4f6b81a5005c
child 3632 32db9d81c895e689238adc5b098cf959915a17f8
push idunknown
push userunknown
push dateunknown
bugs301064
Bug 301064 r=wtc, sr=mkaply (OS/2 only) Patch from Andy Willis - add _declspec(dllexport/dllimport) for OS/2
pr/include/prtypes.h
--- a/pr/include/prtypes.h
+++ b/pr/include/prtypes.h
@@ -156,16 +156,32 @@
 #define PR_IMPLEMENT(__type) __declspec(export) __type
 #define PR_EXTERN_DATA(__type) extern __declspec(export) __type
 #define PR_IMPLEMENT_DATA(__type) __declspec(export) __type
 
 #define PR_CALLBACK
 #define PR_CALLBACK_DECL
 #define PR_STATIC_CALLBACK(__x) static __x
 
+#elif defined(XP_OS2) && defined(__declspec)
+
+#define PR_EXPORT(__type) extern __declspec(dllexport) __type
+#define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type
+#define PR_IMPORT(__type) extern  __declspec(dllimport) __type
+#define PR_IMPORT_DATA(__type) extern __declspec(dllimport) __type
+
+#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
+
+#define PR_CALLBACK
+#define PR_CALLBACK_DECL
+#define PR_STATIC_CALLBACK(__x) static __x
+
 #elif defined(XP_OS2_VACPP) 
 
 #define PR_EXPORT(__type) extern __type
 #define PR_EXPORT_DATA(__type) extern __type
 #define PR_IMPORT(__type) extern __type
 #define PR_IMPORT_DATA(__type) extern __type
 
 #define PR_EXTERN(__type) extern __type