From 06e7309221fd0f123316143d86ee7fcc5243f55c Mon Sep 17 00:00:00 2001 From: Makoto Kato Date: Thu, 16 Jul 2009 15:58:02 +0900 Subject: [PATCH] Bug 503288 - add import/export declare for JavaScript engine. r=jim --- js/src/jstypes.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/js/src/jstypes.h b/js/src/jstypes.h index 04e801fc2b66..3a5a958ba8b6 100644 --- a/js/src/jstypes.h +++ b/js/src/jstypes.h @@ -92,6 +92,13 @@ # define JS_EXTERN_DATA(__type) extern __declspec(dllexport) __type # define JS_EXPORT_DATA(__type) __declspec(dllexport) __type +#elif defined(__SYMBIAN32__) + +# define JS_EXTERN_API(__type) extern EXPORT_C __type +# define JS_EXPORT_API(__type) EXPORT_C __type +# define JS_EXTERN_DATA(__type) extern EXPORT_C __type +# define JS_EXPORT_DATA(__type) EXPORT_C __type + #else /* Unix */ # ifdef HAVE_VISIBILITY_ATTRIBUTE @@ -117,6 +124,8 @@ # endif #elif defined(XP_OS2) && defined(__declspec) # define JS_IMPORT_API(__x) __declspec(dllimport) __x +#elif defined(__SYMBIAN32__) +# define JS_IMPORT_API(__x) IMPORT_C __x #else # define JS_IMPORT_API(__x) JS_EXPORT_API (__x) #endif @@ -125,6 +134,12 @@ # define JS_IMPORT_DATA(__x) __declspec(dllimport) __x #elif defined(XP_OS2) && defined(__declspec) # define JS_IMPORT_DATA(__x) __declspec(dllimport) __x +#elif defined(__SYMBIAN32__) +# if defined(__CW32__) +# define JS_IMPORT_DATA(__x) __declspec(dllimport) __x +# else +# define JS_IMPORT_DATA(__x) IMPORT_C __x +# endif #else # define JS_IMPORT_DATA(__x) JS_EXPORT_DATA (__x) #endif