Browse Source

Fix declaration of snprintf for older MSVC

_snprintf_s takes an additional (size) argument, so is no direct replacement.
(Note that this code is currently unused - the two instances of snprintf here are within ifdef blocks that are not compiled for MSVC)
tags/v0.3.2^2
Martin Kroeker GitHub 7 years ago
parent
commit
1309711e24
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utest/ctest.h

+ 1
- 1
utest/ctest.h View File

@@ -84,7 +84,7 @@ struct ctest {
#endif

#if _MSC_VER < 1900
#define snprintf _snprintf_s
#define snprintf _snprintf
#endif

#ifndef __cplusplus


Loading…
Cancel
Save