VirtualBox

Changeset 2443 in vbox


Ignore:
Timestamp:
Apr 30, 2007 6:42:26 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20852
Message:

fix visibility for incompatible gcc-3.4 compilers

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r2435 r2443  
    845845# of relocation entries and PLT indirections in shared libraries.
    846846ifeq ($(origin VBOX_GCC_fvisibility-hidden),undefined)
    847  export VBOX_GCC_fvisibility-hidden := $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden,)
     847 export VBOX_GCC_fvisibility-hidden := $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN,)
    848848endif
    849849# Set default attribute for inline functions to ``hidden'' to reduce the number
  • trunk/include/iprt/cdefs.h

    r2439 r2443  
    401401# define DECLEXPORT(type)       __declspec(dllexport) type
    402402#else
    403 # if __GNUC__ >= 4
     403# ifdef VBOX_HAVE_VISIBILITY_HIDDEN
    404404#  define DECLEXPORT(type)      __attribute__((visibility("default"))) type
    405405# else
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/prtypes.h

    r2437 r2443  
    179179#else /* Unix */
    180180
    181 # if __GNUC__ >= 4
     181# ifdef VBOX_HAVE_VISIBILITY_HIDDEN
    182182#  define PR_EXPORT(__type) __attribute__((visibility("default"))) extern __type
    183183#  define PR_EXPORT_DATA(__type) __attribute__((visibility("default"))) extern __type
  • trunk/src/libs/xpcom18a4/xpcom/base/nscore.h

    r2437 r2443  
    102102#ifdef HAVE_VISIBILITY_ATTRIBUTE
    103103#define NS_VISIBILITY_HIDDEN   __attribute__ ((visibility ("hidden")))
    104 # if __GNUC__ >= 4
     104# ifdef VBOX_HAVE_VISIBILITY_HIDDEN
    105105#  define NS_VISIBILITY_DEFAULT  __attribute__ ((visibility ("default")))
    106106# else
     
    183183#else
    184184
    185 # if __GNUC__ >= 4
     185# ifdef VBOX_HAVE_VISIBILITY_HIDDEN
    186186#  define NS_IMPORT
    187187#  define NS_IMPORT_(type) type
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptcall/public/xptcall.h

    r2437 r2443  
    6161#    define XPTC_EXPORT           __declspec(dllexport)
    6262#else
    63 #  if __GNUC__ >= 4
     63#  ifdef VBOX_HAVE_VISIBILITY_HIDDEN
    6464#    define XPTC_EXPORT           __attribute__((visibility("default")))
    6565#  else
  • trunk/src/recompiler/Makefile.kmk

    r2438 r2443  
    285285$(PATH_TARGET)/VBoxREMImp.c: VBoxREM.def InnoTek/deftoimp.sed | $(call DIRDEP,$(PATH_TARGET))
    286286        $(MKDIR) -p $(PATH_TARGET)
    287         $(APPEND) [email protected] '#if __GNUC__ >= 4'
     287        $(APPEND) [email protected] '#ifdef VBOX_HAVE_VISIBILITY_HIDDEN'
    288288        $(APPEND) [email protected] '# define EXPORT __attribute__((visibility("default")))'
    289289        $(APPEND) [email protected] '#else'
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