VirtualBox

Ignore:
Timestamp:
Apr 30, 2007 2:58:17 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20844
Message:

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.

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