C99 functions are only available in MSVC 2013 and newer. Still needs testing!

This commit is contained in:
h_vogt 2013-12-22 21:24:42 +01:00 committed by rlar
parent d146502fc9
commit e97de24041
1 changed files with 3 additions and 0 deletions

View File

@ -158,6 +158,8 @@ extern void SetAnalyse(char *Analyse, int Percent);
#if defined (_MSC_VER)
#include <direct.h>
#include <process.h>
/* C99 not available before VC++ 2013) */
#if (_MSC_VER < 1800)
#define trunc x_trunc
extern double x_trunc(double);
#define nearbyint x_nearbyint
@ -168,6 +170,7 @@ extern double x_asinh(double);
extern double x_acosh(double);
#define atanh x_atanh
extern double x_atanh(double);
#endif
#define strdup _strdup
#define unlink _unlink
#define fileno _fileno