зеркало из https://github.com/mozilla/pjs.git
Changed factoring of function declaration macros to be based on choice of
compiler rather than OS
This commit is contained in:
Родитель
622e57b041
Коммит
db0bb1807e
|
@ -20,10 +20,14 @@
|
|||
* Export definitions.
|
||||
*/
|
||||
|
||||
#ifdef XP_PC
|
||||
#ifdef GENERATE_FOR_X86
|
||||
#ifdef __GNUC__
|
||||
#define NS_NATIVECALL(inReturnType) __attribute__((stdcall)) inReturnType
|
||||
#define NS_EXPORT
|
||||
#define NS_EXTERN
|
||||
#else /* MSVC */
|
||||
#define NS_NATIVECALL(inReturnType) inReturnType __stdcall
|
||||
#define NS_EXPORT __declspec(dllexport)
|
||||
|
||||
#ifdef IMPORTING_VM_FILES /* Defined by all modules that import Vm header files */
|
||||
#define NS_EXTERN __declspec(dllimport)
|
||||
#else
|
||||
|
@ -31,10 +35,7 @@
|
|||
#endif
|
||||
|
||||
#pragma warning(disable: 4251)
|
||||
#elif defined(LINUX) || defined(FREEBSD)
|
||||
#define NS_NATIVECALL(inReturnType) __attribute__((stdcall)) inReturnType
|
||||
#define NS_EXPORT
|
||||
#define NS_EXTERN
|
||||
#endif
|
||||
#else
|
||||
#define NS_NATIVECALL(inReturnType) inReturnType
|
||||
#define NS_EXPORT
|
||||
|
|
Загрузка…
Ссылка в новой задаче