project64/Source/Common/Platform.h

30 lines
464 B
C
Raw Normal View History

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
#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
#endif
2021-03-16 22:52:53 +00:00
// FPU rounding code
#ifdef _WIN32
2022-10-03 08:04:42 +00:00
typedef enum
{
FE_TONEAREST = 0,
FE_TOWARDZERO,
FE_UPWARD,
FE_DOWNWARD,
} eRoundType;
int fesetround(int RoundType);
#else
#include <fenv.h>
#endif