VirtualBox

Changeset 83776 in vbox


Ignore:
Timestamp:
Apr 17, 2020 6:00:45 PM (5 years ago)
Author:
vboxsync
Message:

iprt/asm*,++: Contain the intrin.h mess in iprt/win/msvc_intrin.h. Hack it for bs3kit and no-crt to avoid dragging in malloc.h from UCRT with VC++ 14.1. bugref:8489

Location:
trunk/include
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/ssm.h

    r82968 r83776  
    238238 * @internal  */
    239239#define SSMFIELD_ENTRY_INT(Name, off, cb, enmTransformer, uFirstVer) \
    240     { (PFNSSMFIELDGETPUT)(uintptr_t)(enmTransformer), (off), (cb), (uFirstVer), Name }
     240    { (PFNSSMFIELDGETPUT)(uintptr_t)(enmTransformer), (uint32_t)(off), (uint32_t)(cb), (uFirstVer), Name }
    241241/** Emit a SSMFIELD array entry.
    242242 * @internal  */
  • trunk/include/iprt/asm-amd64-x86.h

    r82968 r83776  
    3737
    3838#if defined(_MSC_VER) && RT_INLINE_ASM_USES_INTRIN
    39 # pragma warning(push)
    40 # pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
    41 # pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    42 # include <intrin.h>
    43 # pragma warning(pop)
    44    /* Emit the intrinsics at all optimization levels. */
     39/* Emit the intrinsics at all optimization levels. */
     40# include <iprt/win/msvc_intrin.h>
    4541# pragma intrinsic(_ReadWriteBarrier)
    4642# pragma intrinsic(__cpuid)
  • trunk/include/iprt/asm-math.h

    r82968 r83776  
    3333
    3434#if defined(_MSC_VER) && RT_INLINE_ASM_USES_INTRIN
    35 # pragma warning(push)
    36 # pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
    37 # pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    38 # include <intrin.h>
    39 # pragma warning(pop)
    40   /* Emit the intrinsics at all optimization levels. */
     35/* Emit the intrinsics at all optimization levels. */
     36# include <iprt/win/msvc_intrin.h>
    4137# pragma intrinsic(__emul)
    4238# pragma intrinsic(__emulu)
  • trunk/include/iprt/asm.h

    r82968 r83776  
    4444
    4545#if defined(_MSC_VER) && RT_INLINE_ASM_USES_INTRIN
    46 # pragma warning(push)
    47 # pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
    48 # pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    49 # include <intrin.h>
    50 # pragma warning(pop)
    51   /* Emit the intrinsics at all optimization levels. */
     46/* Emit the intrinsics at all optimization levels. */
     47# include <iprt/win/msvc_intrin.h>
    5248# pragma intrinsic(_ReadWriteBarrier)
    5349# pragma intrinsic(__cpuid)
  • trunk/include/iprt/nt/ntddk.h

    r82968 r83776  
    3131
    3232/* Make sure we get the right prototypes. */
    33 #pragma warning(push)
    34 #pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
    35 #pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    36 #include <intrin.h>
    37 #pragma warning(pop)
     33#include <iprt/win/msvc_intrin.h>
    3834
    3935#define _InterlockedExchange           _InterlockedExchange_StupidDDKVsCompilerCrap
  • trunk/include/iprt/nt/wdm.h

    r82968 r83776  
    3131
    3232/* Make sure we get the right prototypes. */
    33 #pragma warning(push)
    34 #pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
    35 #pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    36 #include <intrin.h>
    37 #pragma warning(pop)
     33#include <iprt/win/msvc_intrin.h>
    3834
    3935#define _InterlockedExchange           _InterlockedExchange_StupidDDKVsCompilerCrap
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