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:
ramiro%netscape.com
1999-07-07 09:02:21 +00:00
parent f51625788b
commit 9a0b13499f
10 changed files with 51 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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