Bug 140031 Change jstypes.h to use __declspec instead of _declspec

r=rogerl
This commit is contained in:
timeless%mozdev.org 2003-02-24 21:37:54 +00:00
parent 08a077d57d
commit 0acb5ea8ca

View File

@ -84,10 +84,10 @@
***********************************************************************/
#ifdef WIN32
/* These also work for __MWERKS__ */
#define JS_EXTERN_API(__type) extern _declspec(dllexport) __type
#define JS_EXPORT_API(__type) _declspec(dllexport) __type
#define JS_EXTERN_DATA(__type) extern _declspec(dllexport) __type
#define JS_EXPORT_DATA(__type) _declspec(dllexport) __type
#define JS_EXTERN_API(__type) extern __declspec(dllexport) __type
#define JS_EXPORT_API(__type) __declspec(dllexport) __type
#define JS_EXTERN_DATA(__type) extern __declspec(dllexport) __type
#define JS_EXPORT_DATA(__type) __declspec(dllexport) __type
#define JS_DLL_CALLBACK
#define JS_STATIC_DLL_CALLBACK(__x) static __x
@ -146,14 +146,14 @@
# ifdef __MWERKS__
# define JS_IMPORT_API(__x) __x
# else
# define JS_IMPORT_API(__x) _declspec(dllimport) __x
# define JS_IMPORT_API(__x) __declspec(dllimport) __x
# endif
#else
# define JS_IMPORT_API(__x) JS_EXPORT_API (__x)
#endif
#if defined(_WIN32) && !defined(__MWERKS__)
# define JS_IMPORT_DATA(__x) _declspec(dllimport) __x
# define JS_IMPORT_DATA(__x) __declspec(dllimport) __x
#else
# define JS_IMPORT_DATA(__x) __x
#endif