VirtualBox

Changeset 20358 in vbox


Ignore:
Timestamp:
Jun 7, 2009 11:55:32 PM (16 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: RT_BEGIN_DECLS and RT_END_DECLS.

File:
1 edited

Legend:

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

    r19819 r20358  
    4646#else
    4747
    48  /** @def __BEGIN_DECLS
    49   * Used to start a block of function declarations which are shared
    50   * between C and C++ program.
    51   */
    52 
    53  /** @def __END_DECLS
    54   * Used to end a block of function declarations which are shared
    55   * between C and C++ program.
    56   */
    57 
    58  #if defined(__cplusplus)
    59  # define __BEGIN_DECLS extern "C" {
    60  # define __END_DECLS   }
    61  #else
    62  # define __BEGIN_DECLS
    63  # define __END_DECLS
    64  #endif
     48/** @def RT_BEGIN_DECLS
     49 * Used to start a block of function declarations which are shared
     50 * between C and C++ program.
     51 */
     52
     53/** @def RT_END_DECLS
     54 * Used to end a block of function declarations which are shared
     55 * between C and C++ program.
     56 */
     57
     58/** @def __BEGIN_DECLS
     59 * @deprecated  Use RT_BEGIN_DECLS
     60 */
     61
     62/** @def __END_DECLS
     63 * @deprecated  Use RT_END_DECLS
     64 */
     65
     66# if defined(__cplusplus)
     67#  define RT_BEGIN_DECLS extern "C" {
     68#  define __BEGIN_DECLS  extern "C" {
     69#  define RT_END_DECLS   }
     70#  define __END_DECLS    }
     71# else
     72#  define RT_BEGIN_DECLS
     73#  define __BEGIN_DECLS
     74#  define RT_END_DECLS
     75#  define __END_DECLS
     76# endif
    6577
    6678#endif
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