project64/Source/Common/Platform.h

24 lines
448 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
int _vscprintf (const char * format, va_list pargs);
#endif
2021-03-16 22:52:53 +00:00
// FPU rounding code
#ifdef _WIN32
typedef enum { FE_TONEAREST = 0, FE_TOWARDZERO, FE_UPWARD, FE_DOWNWARD } eRoundType;
int fesetround(int RoundType);
#else
#include <fenv.h>
#endif