VirtualBox

Changeset 83730 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 17, 2020 2:01:53 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137248
Message:

iprt/bldprog-strtab-template.cpp.h: VC++ 14.1 build fixes. bugref:8489

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/bldprog-strtab-template.cpp.h

    r82968 r83730  
    7777# include <algorithm>
    7878# include <map>
    79 # include <string>
     79# if RT_MSC_PREREQ(RT_MSC_VER_VC141)
     80#  pragma warning(push)
     81#  pragma warning(disable:4774) /* string(530): warning C4774: '_scprintf' : format string expected in argument 1 is not a string literal */
     82#  include <string>
     83#  pragma warning(pop)
     84# else
     85#  include <string>
     86# endif
    8087# include <vector>
    8188
     
    968975        {
    969976            /* Comment with a uncompressed and more readable version of the string. */
    970             fprintf(pOut, off == pCur->offStrTab ? "/* 0x%05x = \"" : "/* 0X%05x = \"", off);
     977            if (off == pCur->offStrTab)
     978                fprintf(pOut, "/* 0x%05x = \"", off);
     979            else
     980                fprintf(pOut, "/* 0X%05x = \"", off);
    971981            BldProgStrTab_PrintCStringLitteral(pThis, pCur, pOut);
    972982            fputs("\" */\n", pOut);
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