2016-01-04 06:49:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include <alloca.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2021-02-28 23:02:40 +00:00
|
|
|
#define stricmp strcasecmp
|
2016-01-04 06:49:33 +00:00
|
|
|
#define _stricmp strcasecmp
|
|
|
|
#define _strnicmp strncasecmp
|
|
|
|
#define _snprintf snprintf
|
2016-01-17 05:58:47 +00:00
|
|
|
#define _isnan isnan
|
2016-01-04 06:49:33 +00:00
|
|
|
|
2022-10-03 08:04:42 +00:00
|
|
|
int _vscprintf(const char * format, va_list pargs);
|
2016-01-04 06:49:33 +00:00
|
|
|
|
2016-01-17 05:58:47 +00:00
|
|
|
#endif
|
|
|
|
|
2021-03-16 22:52:53 +00:00
|
|
|
// FPU rounding code
|
2016-01-17 05:58:47 +00:00
|
|
|
#ifdef _WIN32
|
2022-10-03 08:04:42 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
FE_TONEAREST = 0,
|
|
|
|
FE_TOWARDZERO,
|
|
|
|
FE_UPWARD,
|
|
|
|
FE_DOWNWARD,
|
|
|
|
} eRoundType;
|
2016-01-17 05:58:47 +00:00
|
|
|
int fesetround(int RoundType);
|
|
|
|
#else
|
|
|
|
#include <fenv.h>
|
|
|
|
#endif
|