VirtualBox

Changeset 672 in vbox


Ignore:
Timestamp:
Feb 6, 2007 4:24:06 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18309
Message:

#pragma intrinsic can't be in a function, added missing ().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r420 r672  
    4343#include <VBox/log.h>
    4444#include <iprt/assert.h>
     45
     46#if defined(_MSC_VER) && defined(__AMD64__) /** @todo check this with with VC7! */
     47#  pragma intrinsic(_AddressOfReturnAddress)
     48#endif
    4549
    4650
     
    459463                    void *pvRet = (uint8_t *)__builtin_frame_address(0) + sizeof(void *);
    460464# elif defined(_MSC_VER) && defined(__AMD64__) /** @todo check this with with VC7! */
    461 #  pragma intrinsic(_AddressOfReturnAddress)
    462                     void *pvRet = (uint8_t *)_AddressOfReturnAddress;
     465                    void *pvRet = (uint8_t *)_AddressOfReturnAddress();
    463466# elif defined(__X86__)
    464467                    void *pvRet = (uint8_t *)&pVM - sizeof(pVM);
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