1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-29 13:01:14 +03:00

example: silence MSVS 2013 C4127 warnings (#828)

This commit is contained in:
Viktor Szakats
2023-03-09 10:46:40 +01:00
committed by GitHub
parent 33b6d5f89d
commit 99c1333ba7
11 changed files with 30 additions and 7 deletions

View File

@ -45,6 +45,10 @@
#include <stdio.h>
#include <ctype.h>
#if defined(_MSC_VER) && _MSC_VER < 1900
#pragma warning(disable:4127)
#endif
#ifdef HAVE_GETTIMEOFDAY
/* diff in ms */
static long tvdiff(struct timeval newer, struct timeval older)