Merge pull request #1680 from martin-frbg/snprint

Fix wrong redefinitions of snprintf for older MSVC
This commit is contained in:
Martin Kroeker
2018-07-12 14:05:13 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#if defined(_WIN32) && defined(_MSC_VER)
#if _MSC_VER < 1900
#define snprintf _snprintf_s
#define snprintf _snprintf
#endif
#endif

View File

@@ -84,7 +84,7 @@ struct ctest {
#endif
#if _MSC_VER < 1900
#define snprintf _snprintf_s
#define snprintf _snprintf
#endif
#ifndef __cplusplus