Bug 305949 (almost done!) - Stop exporting some nonfrozen functions (widget and libreg) r=bryner

This commit is contained in:
benjamin%smedbergs.us 2006-05-22 19:13:03 +00:00
parent cd54a2cfe7
commit 98ca29135d
4 changed files with 3 additions and 34 deletions

View File

@ -115,27 +115,8 @@ typedef struct _reginfo
#define UNIX_GLOBAL_FLAG "MOZILLA_SHARED_REGISTRY"
/* Platform-dependent declspec for library interface */
#if defined(XP_WIN)
#if defined(WIN32)
#if defined (STANDALONE_REGISTRY)
#define VR_INTERFACE(type) __declspec(dllexport) type __cdecl
#else
#define VR_INTERFACE(type) __declspec(dllexport) type __stdcall
#endif
#else
#define VR_INTERFACE(type) type _far _pascal _export
#endif
#elif defined(XP_OS2) && defined(__declspec)
#define VR_INTERFACE(type) __declspec(dllexport) type
#elif defined XP_MAC
#define VR_INTERFACE(__x) __declspec(export) __x
#elif defined (HAVE_VISIBILITY_ATTRIBUTE)
#define VR_INTERFACE(type) __attribute__ ((visibility ("default"))) type
#else
#define VR_INTERFACE(type) type
#endif
/* libreg functions are not DLLexported and may have hidden visibility */
#define VR_INTERFACE(type) type
PR_BEGIN_EXTERN_C

View File

@ -790,7 +790,7 @@ nsJVMManager::GetJVMStatus(void)
return fStatus;
}
extern "C" nsresult JSJ_RegisterLiveConnectFactory(void);
extern "C" NS_VISIBILITY_DEFAULT nsresult JSJ_RegisterLiveConnectFactory(void);
PRBool
nsJVMManager::MaybeStartupLiveConnect(void)

View File

@ -48,9 +48,6 @@
#include "nsString.h"
#include "nsFont.h"
#undef IMETHOD_VISIBILITY
#define IMETHOD_VISIBILITY NS_VISIBILITY_DEFAULT
/**
* Class nsPrintOptions
*/
@ -134,7 +131,4 @@ private:
nsPrintOptions& operator=(const nsPrintOptions& x);
};
#undef IMETHOD_VISIBILITY
#define IMETHOD_VISIBILITY NS_VISIBILITY_HIDDEN
#endif /* nsPrintOptionsImpl_h__ */

View File

@ -52,9 +52,6 @@
//*** nsPrintSettings
//*****************************************************************************
#undef IMETHOD_VISIBILITY
#define IMETHOD_VISIBILITY NS_VISIBILITY_DEFAULT
class nsPrintSettings : public nsIPrintSettings
{
public:
@ -136,7 +133,4 @@ protected:
};
#undef IMETHOD_VISIBILITY
#define IMETHOD_VISIBILITY NS_VISIBILITY_HIDDEN
#endif /* nsPrintSettings_h__ */