detection of snprintf for Visual <= 2012
This commit is contained in:
+3
-1
@@ -7,7 +7,9 @@ platform:
|
|||||||
- x64
|
- x64
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
|
- PlatformToolset: v100
|
||||||
- PlatformToolset: v110
|
- PlatformToolset: v110
|
||||||
|
- PlatformToolset: v120
|
||||||
- PlatformToolset: v140
|
- PlatformToolset: v140
|
||||||
build_script:
|
build_script:
|
||||||
- cmd: >-
|
- cmd: >-
|
||||||
@@ -16,7 +18,7 @@ build_script:
|
|||||||
msbuild "visual\2013\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=%PlatformToolset% /t:Clean,Build /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
msbuild "visual\2013\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=%PlatformToolset% /t:Clean,Build /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
test_script:
|
test_script:
|
||||||
- cmd: >-
|
- cmd: >-
|
||||||
ECHO %APPVEYOR_BUILD_FOLDER%\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe %FUZZERTEST%
|
ECHO %APPVEYOR_BUILD_FOLDER%\visual\2013\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe %FUZZERTEST%
|
||||||
|
|
||||||
SET FUZZERTEST=-T5mn
|
SET FUZZERTEST=-T5mn
|
||||||
|
|
||||||
|
|||||||
+5
-2
@@ -46,9 +46,12 @@ extern "C" {
|
|||||||
# define _CRT_SECURE_NO_WARNINGS /* Disable some Visual warning messages for fopen, strncpy */
|
# define _CRT_SECURE_NO_WARNINGS /* Disable some Visual warning messages for fopen, strncpy */
|
||||||
# define _CRT_SECURE_NO_DEPRECATE /* VS2005 */
|
# define _CRT_SECURE_NO_DEPRECATE /* VS2005 */
|
||||||
# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */
|
# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */
|
||||||
# define snprintf sprintf_s /* snprintf unsupported by Visual <= 2012 */
|
#if _MSC_VER <= 1700 /* (1700 = Visual Studio 2012) */
|
||||||
//# define snprintf _snprintf
|
#define snprintf sprintf_s /* snprintf unsupported by Visual <= 2012 */
|
||||||
|
//#define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Unix Large Files support (>4GB) */
|
/* Unix Large Files support (>4GB) */
|
||||||
#if !defined(__LP64__) /* No point defining Large file for 64 bit */
|
#if !defined(__LP64__) /* No point defining Large file for 64 bit */
|
||||||
|
|||||||
Reference in New Issue
Block a user