summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseawood%netscape.com <devnull@localhost>2003-06-25 14:49:44 +0000
committerseawood%netscape.com <devnull@localhost>2003-06-25 14:49:44 +0000
commiteb5c6ef476f012a19267a38b19b36fedba8f118a (patch)
treeb628cdd02fef0c8a992dff7dc164ccb962463be5
parente68a57b72bb5feb430b804e48fc31fad02fc9ea7 (diff)
downloadnspr-hg-eb5c6ef476f012a19267a38b19b36fedba8f118a.tar.gz
Use standard __declspec keyword instead of _declspec.
Bug #202826 r=wtc
-rw-r--r--pr/include/prtypes.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/pr/include/prtypes.h b/pr/include/prtypes.h
index b6836108..b7ee24f4 100644
--- a/pr/include/prtypes.h
+++ b/pr/include/prtypes.h
@@ -79,20 +79,15 @@
***********************************************************************/
#if defined(WIN32)
-#if defined(__GNUC__)
-#undef _declspec
-#define _declspec(x) __declspec(x)
-#endif
-
-#define PR_EXPORT(__type) extern _declspec(dllexport) __type
-#define PR_EXPORT_DATA(__type) extern _declspec(dllexport) __type
-#define PR_IMPORT(__type) _declspec(dllimport) __type
-#define PR_IMPORT_DATA(__type) _declspec(dllimport) __type
+#define PR_EXPORT(__type) extern __declspec(dllexport) __type
+#define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type
+#define PR_IMPORT(__type) __declspec(dllimport) __type
+#define PR_IMPORT_DATA(__type) __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_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