VirtualBox

Ignore:
Timestamp:
Apr 30, 2007 3:25:20 PM (18 years ago)
Author:
vboxsync
Message:

partly fixed my last commit for gcc-3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/prtypes.h

    r2435 r2437  
    179179#else /* Unix */
    180180
    181 #define PR_EXPORT(__type) __attribute__((visibility("default"))) extern __type
    182 #define PR_EXPORT_DATA(__type) __attribute__((visibility("default"))) extern __type
    183 #define PR_IMPORT(__type) extern __type
    184 #define PR_IMPORT_DATA(__type) extern __type
    185 
    186 #define PR_EXTERN(__type) __attribute__((visibility("default"))) extern __type
    187 #define PR_IMPLEMENT(__type) __attribute__((visibility("default"))) __type
    188 #define PR_EXTERN_DATA(__type) __attribute__((visibility("default"))) extern __type
    189 #define PR_IMPLEMENT_DATA(__type) __attribute__((visibility("default"))) __type
    190 #define PR_CALLBACK
    191 #define PR_CALLBACK_DECL
    192 #define PR_STATIC_CALLBACK(__x) static __x
    193 
     181# if __GNUC__ >= 4
     182#  define PR_EXPORT(__type) __attribute__((visibility("default"))) extern __type
     183#  define PR_EXPORT_DATA(__type) __attribute__((visibility("default"))) extern __type
     184#  define PR_IMPORT(__type) extern __type
     185#  define PR_IMPORT_DATA(__type) extern __type
     186#  define PR_EXTERN(__type) __attribute__((visibility("default"))) extern __type
     187#  define PR_IMPLEMENT(__type) __attribute__((visibility("default"))) __type
     188#  define PR_EXTERN_DATA(__type) __attribute__((visibility("default"))) extern __type
     189#  define PR_IMPLEMENT_DATA(__type) __attribute__((visibility("default"))) __type
     190#  define PR_CALLBACK
     191#  define PR_CALLBACK_DECL
     192#  define PR_STATIC_CALLBACK(__x) static __x
     193# else
     194#  define PR_EXPORT(__type) extern __type
     195#  define PR_EXPORT_DATA(__type) extern __type
     196#  define PR_IMPORT(__type) extern __type
     197#  define PR_IMPORT_DATA(__type) extern __type
     198#  define PR_EXTERN(__type) extern __type
     199#  define PR_IMPLEMENT(__type) __type
     200#  define PR_EXTERN_DATA(__type) extern __type
     201#  define PR_IMPLEMENT_DATA(__type) __type
     202#  define PR_CALLBACK
     203#  define PR_CALLBACK_DECL
     204#  define PR_STATIC_CALLBACK(__x) static __x
     205# endif
    194206#endif
    195207
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