diff options
author | Diegoisawesome <Diegoisawesome@users.noreply.github.com> | 2018-01-21 14:19:22 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-21 14:19:22 -0600 |
commit | eec225e983a62ff2241f84ae7077650233a197c8 (patch) | |
tree | 263faf760667c7d9cbfe38a27247e4d52e66d490 /include | |
parent | a1aa645f2364deffda698b8e0cdc5c961b5306a5 (diff) | |
parent | 89bbecd34bf50a1c0be15746097d797b09356273 (diff) |
Merge pull request #178 from PikalaxALT/libc
Use standard flags to link libgcc, libc
Diffstat (limited to 'include')
-rw-r--r-- | include/global.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/global.h b/include/global.h index 3e260fd2a..9f6c45df1 100644 --- a/include/global.h +++ b/include/global.h @@ -1,6 +1,7 @@ #ifndef GUARD_GLOBAL_H #define GUARD_GLOBAL_H +#include <string.h> #include "config.h" // we need to define config before gba headers as print stuff needs the functions nulled before defines. #include "gba/gba.h" @@ -11,11 +12,16 @@ #define asm_comment(x) asm volatile("@ -- " x " -- ") #define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided") +// IDE support #if defined (__APPLE__) || defined (__CYGWIN__) -void *memset(void *, int, size_t); -void *memcpy(void *, const void *, size_t); -int strcmp(const char *s1, const char *s2); -char* strcpy(char *dst0, const char *src0); +#define _(x) x +#define __(x) x +#define INCBIN_U8 {0} +#define INCBIN_U16 {0} +#define INCBIN_U32 {0} +#define INCBIN_S8 {0} +#define INCBIN_S16 {0} +#define INCBIN_S32 {0} #endif // __APPLE__ #define ARRAY_COUNT(array) (sizeof(array) / sizeof((array)[0])) |