VirtualBox

Changeset 10383 in vbox


Ignore:
Timestamp:
Jul 8, 2008 8:31:25 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33033
Message:

Added DECLHIDDEN.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r9411 r10383  
    444444#if defined(_MSC_VER) || defined(RT_OS_OS2)
    445445# define DECLEXPORT(type)       __declspec(dllexport) type
    446 #else
    447 # ifdef VBOX_HAVE_VISIBILITY_HIDDEN
    448 #  define DECLEXPORT(type)      __attribute__((visibility("default"))) type
    449 # else
    450 #  define DECLEXPORT(type)      type
    451 # endif
     446#elif defined(VBOX_HAVE_VISIBILITY_HIDDEN)
     447# define DECLEXPORT(type)      __attribute__((visibility("default"))) type
     448#else
     449# define DECLEXPORT(type)      type
    452450#endif
    453451
     
    460458#else
    461459# define DECLIMPORT(type)       type
     460#endif
     461
     462/** @def DECLHIDDEN
     463 * How to declare a non-exported function or variable.
     464 * @param   type    The return type of the function or the data type of the variable.
     465 */
     466#if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS) || !defined(VBOX_HAVE_VISIBILITY_HIDDEN)
     467# define DECLHIDDEN(type)       type
     468#else
     469# define DECLHIDDEN(type)       __attribute__((visibility("hidden"))) type
    462470#endif
    463471
     
    12891297#if defined(_MSC_VER) || defined(RT_OS_OS2)
    12901298# define DECLEXPORT_CLASS       __declspec(dllexport)
    1291 #else
    1292 # ifdef VBOX_HAVE_VISIBILITY_HIDDEN
    1293 #  define DECLEXPORT_CLASS      __attribute__((visibility("default")))
    1294 # else
    1295 #  define DECLEXPORT_CLASS
    1296 # endif
     1299#elif defined(VBOX_HAVE_VISIBILITY_HIDDEN)
     1300# define DECLEXPORT_CLASS       __attribute__((visibility("default")))
     1301#else
     1302# define DECLEXPORT_CLASS
    12971303#endif
    12981304
     
    13071313#if defined(_MSC_VER) || (defined(RT_OS_OS2) && !defined(__IBMC__) && !defined(__IBMCPP__))
    13081314# define DECLIMPORT_CLASS       __declspec(dllimport)
    1309 #else
    1310 # ifdef VBOX_HAVE_VISIBILITY_HIDDEN
    1311 #  define DECLIMPORT_CLASS      __attribute__((visibility("default")))
    1312 # else
    1313 #  define DECLIMPORT_CLASS
    1314 # endif
     1315#elif defined(VBOX_HAVE_VISIBILITY_HIDDEN)
     1316# define DECLIMPORT_CLASS       __attribute__((visibility("default")))
     1317#else
     1318# define DECLIMPORT_CLASS
    13151319#endif
    13161320
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