зеркало из https://github.com/mozilla/pjs.git
Use __declspec(dllexport/dllimport) on OS/2. Patch from Andy Willis <abwillis1@gmail.com>, bug 301064, r=mrbkap
This commit is contained in:
Родитель
2c864acb89
Коммит
0f8f55e95c
|
@ -86,6 +86,16 @@
|
||||||
#define JS_DLL_CALLBACK
|
#define JS_DLL_CALLBACK
|
||||||
#define JS_STATIC_DLL_CALLBACK(__x) static __x
|
#define JS_STATIC_DLL_CALLBACK(__x) static __x
|
||||||
|
|
||||||
|
#elif defined(XP_OS2) && defined(__declspec)
|
||||||
|
|
||||||
|
#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
|
||||||
|
|
||||||
#elif defined(WIN16)
|
#elif defined(WIN16)
|
||||||
|
|
||||||
#ifdef _WINDLL
|
#ifdef _WINDLL
|
||||||
|
@ -131,12 +141,16 @@
|
||||||
# else
|
# else
|
||||||
# define JS_IMPORT_API(__x) __declspec(dllimport) __x
|
# define JS_IMPORT_API(__x) __declspec(dllimport) __x
|
||||||
# endif
|
# endif
|
||||||
|
#elif defined(XP_OS2) && defined(__declspec)
|
||||||
|
# define JS_IMPORT_API(__x) __declspec(dllimport) __x
|
||||||
#else
|
#else
|
||||||
# define JS_IMPORT_API(__x) JS_EXPORT_API (__x)
|
# define JS_IMPORT_API(__x) JS_EXPORT_API (__x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(__MWERKS__)
|
#if defined(_WIN32) && !defined(__MWERKS__)
|
||||||
# define JS_IMPORT_DATA(__x) __declspec(dllimport) __x
|
# define JS_IMPORT_DATA(__x) __declspec(dllimport) __x
|
||||||
|
#elif defined(XP_OS2) && defined(__declspec)
|
||||||
|
# define JS_IMPORT_DATA(__x) __declspec(dllimport) __x
|
||||||
#else
|
#else
|
||||||
# define JS_IMPORT_DATA(__x) JS_EXPORT_DATA (__x)
|
# define JS_IMPORT_DATA(__x) JS_EXPORT_DATA (__x)
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче