VirtualBox

Changeset 57336 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Aug 13, 2015 10:17:35 PM (9 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h,PGMDbg.cpp: Align DECLASM and DECLCALLBACK (and the rest) so we won't get into trouble with newer gcc versions finally checking for compatible calling conventions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PGMDbg.cpp

    r57334 r57336  
    104104 */
    105105
    106 #if defined(_MSC_VER) || defined(RT_OS_OS2)
    107 # define DECLASMCALLBACK(type)          type __cdecl
    108 #elif defined(__GNUC__) && defined(RT_ARCH_X86)
    109 # define DECLASMCALLBACK(type)          type __attribute__((cdecl,regparm(0)))
    110 #else
    111 # define DECLASMCALLBACK(type)          type
    112 #endif
    113 typedef DECLASMCALLBACK(uint8_t const *) FNPGMR3DBGFIXEDMEMSCAN(void const *pvHaystack, uint32_t cbHaystack,
    114                                                                 void const *pvNeedle, size_t cbNeedle);
     106typedef DECLCALLBACK(uint8_t const *) FNPGMR3DBGFIXEDMEMSCAN(void const *pvHaystack, uint32_t cbHaystack,
     107                                                             void const *pvNeedle, size_t cbNeedle);
    115108/** Pointer to an fixed size and step assembly scanner function. */
    116109typedef FNPGMR3DBGFIXEDMEMSCAN *PFNPGMR3DBGFIXEDMEMSCAN;
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