VirtualBox

Changeset 19167 in vbox


Ignore:
Timestamp:
Apr 24, 2009 12:15:18 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46458
Message:

iprt/cdefs.h,RTLdr: Added an generic RT_NOTHING macro to fixing issues like r46334.

Location:
trunk
Files:
2 edited

Legend:

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

    r17817 r19167  
    472472# define RCSTRING(pRCString)    ("<RC_STRING>")
    473473#endif
     474
     475
     476/** @def RT_NOTHING
     477 * A macro that expands to nothing.
     478 * This is primarily intended as a dummy argument for macros to avoid the
     479 * undefined behavior passing empty arguments to an macro (ISO C90 and C++98,
     480 * gcc v4.4 warns about it).
     481 */
     482#define RT_NOTHING
    474483
    475484
  • trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h

    r19128 r19167  
    7575#define Elf_Word            RTLDRELF_MID(Elf,_Word)
    7676
    77 /* gcc-4.4 warning: ''empty macro arguments are undefined in ISO C90 and ISO C++98'' */
    78 #define NO_SUFFIX
    79 #define RTLDRMODELF         RTLDRELF_MID(RTLDRMODELF,NO_SUFFIX)
    80 #define PRTLDRMODELF        RTLDRELF_MID(PRTLDRMODELF,NO_SUFFIX)
    81 #undef NO_SUFFIX
     77#define RTLDRMODELF         RTLDRELF_MID(RTLDRMODELF,RT_NOTHING)
     78#define PRTLDRMODELF        RTLDRELF_MID(PRTLDRMODELF,RT_NOTHING)
    8279
    8380#define ELF_R_SYM(info)     RTLDRELF_MID(ELF,_R_SYM)(info)
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