2015-05-18 21:03:13 +00:00
|
|
|
#ifndef GEKKO_SUPPORT_H
|
|
|
|
#define GEKKO_SUPPORT_H
|
|
|
|
|
2018-09-20 17:47:48 +00:00
|
|
|
#if defined(GEKKO) || defined(__SWITCH__)
|
2015-05-18 21:03:13 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
2015-10-16 08:07:54 +00:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <stdlib.h>
|
2015-05-18 21:03:13 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2018-09-20 17:47:48 +00:00
|
|
|
#ifdef __SWITCH__
|
|
|
|
#define ftello64 ftello
|
|
|
|
#define fseeko64 fseeko
|
|
|
|
#endif
|
|
|
|
|
2015-05-18 21:03:13 +00:00
|
|
|
char *
|
|
|
|
realpath(const char *path, char *resolved);
|
|
|
|
int
|
|
|
|
vsnprintf (char *s, size_t n, const char *format, va_list ap);
|
2015-10-16 08:07:54 +00:00
|
|
|
int
|
|
|
|
snprintf(char *str, size_t n, const char *fmt, ...);
|
|
|
|
long long
|
|
|
|
strtoq(const char *nptr, char **endptr, int base);
|
|
|
|
unsigned long long
|
|
|
|
strtouq(const char *nptr, char **endptr, int base);
|
2015-10-16 09:46:18 +00:00
|
|
|
/* devkitppc doesn't properly declare strtof for some reason */
|
2015-10-16 08:07:54 +00:00
|
|
|
float
|
|
|
|
strtof(const char *string, char **endPtr );
|
2015-05-18 21:03:13 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // GEKKO_SUPPORT_H
|