Defining NS_EXPORT, et. al. for XP_MAC.

This commit is contained in:
beard%netscape.com 1998-09-22 22:46:18 +00:00
parent 376dc6bfe3
commit 41d8748274
2 changed files with 23 additions and 2 deletions

View File

@ -64,6 +64,14 @@ typedef PRUcs2 PRUnichar;
// is placed. It needs to be done this way to make the 4.x compiler happy...
#undef NS_EXPORT_
#define NS_EXPORT_(type) type _declspec(dllexport) __stdcall
#elif defined(XP_MAC)
#define NS_IMPORT __declspec(import)
#define NS_IMPORT_(type) __declspec(import) type
#define NS_EXPORT __declspec(export)
#define NS_EXPORT_(type) __declspec(export) type
#else
/* XXX do something useful? */
#define NS_IMPORT

View File

@ -41,7 +41,7 @@
* DLL Export macro
*/
#ifdef XP_PC
#if defined(XP_PC)
#define NS_EXPORT _declspec(dllexport)
#define NS_EXPORT_(type) _declspec(dllexport) type __stdcall
@ -54,7 +54,20 @@
#define NS_METHOD_(type) type __stdcall
#define NS_METHOD nsresult __stdcall
#else /* !XP_PC */
#elif defined(XP_MAC)
#define NS_EXPORT __declspec(export)
#define NS_EXPORT_(type) __declspec(export) type
#define NS_IMETHOD_(type) virtual type
#define NS_IMETHOD virtual nsresult
#define NS_IMETHODIMP_(type) type
#define NS_IMETHODIMP nsresult
#define NS_METHOD_(type) type
#define NS_METHOD nsresult
#else /* !XP_PC && !XP_MAC */
#define NS_EXPORT
#define NS_EXPORT_(type) type