summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseawood%netscape.com <devnull@localhost>2003-06-25 14:44:45 +0000
committerseawood%netscape.com <devnull@localhost>2003-06-25 14:44:45 +0000
commit26c517034aa5ad8bfcca62925e8cc622166b9555 (patch)
tree895ded5d93c92bf811e03e03e3a81d5bbd8fcf50
parent68de9d8f40d566a7d92c762fd1fa192e79b6faee (diff)
downloadnspr-hg-26c517034aa5ad8bfcca62925e8cc622166b9555.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