Changeset 10383 in vbox
- Timestamp:
- Jul 8, 2008 8:31:25 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33033
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r9411 r10383 444 444 #if defined(_MSC_VER) || defined(RT_OS_OS2) 445 445 # 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 452 450 #endif 453 451 … … 460 458 #else 461 459 # 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 462 470 #endif 463 471 … … 1289 1297 #if defined(_MSC_VER) || defined(RT_OS_OS2) 1290 1298 # 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 1297 1303 #endif 1298 1304 … … 1307 1313 #if defined(_MSC_VER) || (defined(RT_OS_OS2) && !defined(__IBMC__) && !defined(__IBMCPP__)) 1308 1314 # 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 1315 1319 #endif 1316 1320
Note:
See TracChangeset
for help on using the changeset viewer.