зеркало из https://github.com/mozilla/gecko-dev.git
Added some variants of NS_EXPORT and NS_IMPORT that take a type and
declare the function __stdcall
This commit is contained in:
Родитель
a017cd9e13
Коммит
7d7fa48e7f
|
@ -58,7 +58,9 @@ typedef PRUcs2 PRUnichar;
|
||||||
|
|
||||||
#ifdef NS_WIN32
|
#ifdef NS_WIN32
|
||||||
#define NS_IMPORT _declspec(dllimport)
|
#define NS_IMPORT _declspec(dllimport)
|
||||||
|
#define NS_IMPORT_(type) _declspec(dllimport) type __stdcall
|
||||||
#define NS_EXPORT _declspec(dllexport)
|
#define NS_EXPORT _declspec(dllexport)
|
||||||
|
#define NS_EXPORT_(type) _declspec(dllexport) type __stdcall
|
||||||
#else
|
#else
|
||||||
/* XXX do something useful? */
|
/* XXX do something useful? */
|
||||||
#define NS_IMPORT
|
#define NS_IMPORT
|
||||||
|
@ -97,14 +99,18 @@ typedef PRUcs2 PRUnichar;
|
||||||
|
|
||||||
#ifdef _IMPL_NS_GFXNONXP
|
#ifdef _IMPL_NS_GFXNONXP
|
||||||
#define NS_GFXNONXP NS_EXPORT
|
#define NS_GFXNONXP NS_EXPORT
|
||||||
|
#define NS_GFXNONXP_(type) NS_EXPORT_(type)
|
||||||
#else
|
#else
|
||||||
#define NS_GFXNONXP NS_IMPORT
|
#define NS_GFXNONXP NS_IMPORT
|
||||||
|
#define NS_GFXNONXP_(type) NS_IMPORT_(type)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _IMPL_NS_GFX
|
#ifdef _IMPL_NS_GFX
|
||||||
#define NS_GFX NS_EXPORT
|
#define NS_GFX NS_EXPORT
|
||||||
|
#define NS_GFX_(type) NS_EXPORT_(type)
|
||||||
#else
|
#else
|
||||||
#define NS_GFX NS_IMPORT
|
#define NS_GFX NS_IMPORT
|
||||||
|
#define NS_GFX_(type) NS_IMPORT_(type)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _IMPL_NS_PLUGIN
|
#ifdef _IMPL_NS_PLUGIN
|
||||||
|
|
Загрузка…
Ссылка в новой задаче