VirtualBox

Changeset 2435 in vbox for trunk/src/libs/xpcom18a4/xpcom


Ignore:
Timestamp:
Apr 30, 2007 2:58:17 PM (18 years ago)
Author:
vboxsync
Message:

with gcc, mark all ELF symbols with visibility=hidden by default and mark symbols which should be exported as visibility=default

Location:
trunk/src/libs/xpcom18a4/xpcom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/base/nscore.h

    r1 r2435  
    102102#ifdef HAVE_VISIBILITY_ATTRIBUTE
    103103#define NS_VISIBILITY_HIDDEN   __attribute__ ((visibility ("hidden")))
    104 #define NS_VISIBILITY_DEFAULT
     104#define NS_VISIBILITY_DEFAULT  __attribute__ ((visibility ("default")))
    105105
    106106#define NS_HIDDEN_(type)   NS_VISIBILITY_HIDDEN type
     
    181181#define NS_IMPORT
    182182#define NS_IMPORT_(type) type
    183 #define NS_EXPORT
    184 #define NS_EXPORT_(type) type
     183#define NS_EXPORT __attribute__((visibility("default")))
     184#define NS_EXPORT_(type) __attribute__((visibility("default"))) type
    185185#define NS_IMETHOD_(type) virtual IMETHOD_VISIBILITY type NS_DEFCALL
    186186#define NS_IMETHODIMP_(type) type
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptcall/public/xptcall.h

    r1 r2435  
    6161#    define XPTC_EXPORT           __declspec(dllexport)
    6262#else
    63 #    define XPTC_EXPORT
     63#    define XPTC_EXPORT           __attribute__((visibility("default")))
    6464#endif
    6565#else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette