VirtualBox

Changeset 83816 in vbox for trunk/src


Ignore:
Timestamp:
Apr 19, 2020 12:38:49 AM (5 years ago)
Author:
vboxsync
Message:

VBoxSVGA3D: VC++ 14.1 / UCRT adjustments. bugref:8489

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/include/config.h

    r53201 r83816  
    714714/* Define to 1 if you have the `snprintf' function. */
    715715/* #undef HAVE_SNPRINTF */
     716#include <iprt/cdefs.h>             /* VBox: Manual edit */
     717#if RT_MSC_PREREQ(RT_MSC_VER_VC141) /* VBox: Manual edit */
     718# define HAVE_SNPRINTF 1            /* VBox: Manual edit */
     719#endif                              /* VBox: Manual edit */
    716720
    717721/* Define to 1 if you have the `socketpair' function. */
     
    10291033/* Define to 1 if you have the `vsnprintf' function. */
    10301034/* #undef HAVE_VSNPRINTF */
     1035#if RT_MSC_PREREQ(RT_MSC_VER_VC141) /* VBox: Manual edit */
     1036# define HAVE_VSNPRINTF 1           /* VBox: Manual edit */
     1037#endif                              /* VBox: Manual edit */
    10311038
    10321039/* Define to 1 if you have the `wait4' function. */
  • trunk/src/VBox/Devices/Makefile.kmk

    r83579 r83816  
    13011301   tstIntNetHardened-1_TEMPLATE = VBoxR3HardenedTstExe
    13021302   tstIntNetHardened-1_NAME     = tstIntNet-1
    1303    tstIntNetHardened-1_DEFS     = PROGRAM_NAME_STR=\"tstIntNet-1\"
     1303   ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     1304    tstIntNetHardened-1_DEFS    = PROGRAM_NAME_STR="tstIntNet-1"
     1305   else
     1306    tstIntNetHardened-1_DEFS    = PROGRAM_NAME_STR=\"tstIntNet-1\"
     1307   endif
    13041308   tstIntNetHardened-1_SOURCES  = ../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
    13051309
     
    14741478 TEMPLATE_VBoxSVGA3D_EXTENDS := $(if-expr "$(KBUILD_TARGET)" == "darwin" && !defined(VBOX_WITH_NEW_XCODE),VBoxR3DllOsX107,VBOXR3)
    14751479 TEMPLATE_VBoxSVGA3D_CFLAGS      = $(filter-out -pedantic -Wstrict-prototypes,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS))
     1480 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC141"
     1481  # -wd4777: glsl_shader.c(1542): warning C4777: 'sprintf' : format string '%u' requires an argument of type 'unsigned int', but variadic argument 2 has type 'DWORD'
     1482  TEMPLATE_VBoxSVGA3D_CFLAGS.win = $(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS.win) \
     1483        -wd4777
     1484 endif
    14761485 TEMPLATE_VBoxSVGA3D_CXXFLAGS    = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS))
    14771486 TEMPLATE_VBoxSVGA3D_OBJCFLAGS   = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS))
     
    14881497 VBoxSVGA3D_DEFS         = \
    14891498        __WINESRC__ \
    1490         WINE_UNICODE_API="" \
    14911499        _REENTRANT \
    14921500        WINE_NOWINSOCK \
    14931501        VBOX_WITH_VMSVGA \
    14941502        VBOX_WITH_VMSVGA3D \
     1503        _USE_MATH_DEFINES \
     1504        VBOX_USING_WINDDK_W7_OR_LATER \
     1505        VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \
     1506        IN_vmsvgashader_STATIC \
     1507        IN_VMSVGA3D \
     1508        VBOX_WINE_WITH_IPRT
     1509 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     1510 VBoxSVGA3D_DEFS        += \
     1511        WINE_UNICODE_API= \
     1512        DLLDIR="" \
     1513        BINDIR="" \
     1514        LIB_TO_BINDIR="" \
     1515        LIB_TO_DLLDIR="" \
     1516        BIN_TO_DLLDIR="" \
     1517        LIB_TO_DATADIR="" \
     1518        BIN_TO_DATADIR=""
     1519 else
     1520 VBoxSVGA3D_DEFS        += \
     1521        WINE_UNICODE_API="" \
    14951522        DLLDIR=\"\" \
    14961523        BINDIR=\"\" \
     
    14991526        BIN_TO_DLLDIR=\"\" \
    15001527        LIB_TO_DATADIR=\"\" \
    1501         BIN_TO_DATADIR=\"\" \
    1502         _USE_MATH_DEFINES \
    1503         VBOX_USING_WINDDK_W7_OR_LATER \
    1504         VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \
    1505         IN_vmsvgashader_STATIC \
    1506         IN_VMSVGA3D \
    1507         VBOX_WINE_WITH_IPRT
     1528        BIN_TO_DATADIR=\"\"
     1529 endif
    15081530 if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
    15091531  VBoxSVGA3D_DEFS       += WINE_NO_DEBUG_MSGS
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