Checkin another chunk of Alex Larsson's non-exported symbol reduction
patch. All changes protected by MOZ_STRIP_NOT_EXPORTED. These particular changes set the NS_EXPORT declarations as needed by the linker. git-svn-id: svn://10.0.0.236/trunk@38670 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -36,6 +36,9 @@
|
||||
#ifdef XP_WIN32
|
||||
#define UNICVTAPI __declspec(dllexport)
|
||||
|
||||
#elif defined(MOZ_STRIP_NOT_EXPORTED)
|
||||
#define UNICVTAPI __attribute__ ((dllexport))
|
||||
|
||||
#else
|
||||
#define UNICVTAPI
|
||||
#endif
|
||||
|
||||
@@ -64,6 +64,8 @@
|
||||
* so we can increase the stack size
|
||||
*/
|
||||
#define ResDef(name,id,msg) int __far name = (id);
|
||||
#elif defined(MOZ_STRIP_NOT_EXPORTED)
|
||||
#define ResDef(name,id,msg) __attribute__ ((dllexport)) int name = (id);
|
||||
#else
|
||||
#define ResDef(name,id,msg) int name = (id);
|
||||
#endif
|
||||
|
||||
@@ -243,6 +243,13 @@ typedef int (*FARPROC)();
|
||||
#define PUBLIC
|
||||
#define MODULE_PRIVATE
|
||||
|
||||
#if defined(XP_UNIX) && defined(MOZ_STRIP_NOT_EXPORTED)
|
||||
#undef PUBLIC
|
||||
#define PUBLIC __attribute__ ((dllexport))
|
||||
#undef MODULE_PRIVATE
|
||||
#define MODULE_PRIVATE __attribute__ ((dllexport))
|
||||
#endif
|
||||
|
||||
#if defined(XP_UNIX) && defined(PRIVATE)
|
||||
#undef PRIVATE
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user