diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2018-01-21 23:20:13 -0500 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2018-01-21 23:20:13 -0500 |
commit | d4e8c20f840996049f269ffcd22d7e3feb489696 (patch) | |
tree | 48b8deab17118064ae33bf8924569c834416cb96 /include/global.h | |
parent | d35cf06854be09a6bcf5ceb63cdb54cefd6d48a2 (diff) | |
parent | f57340b729d741acae17213c9c748738fcc1dcb3 (diff) |
Merge branch 'master' into link
Diffstat (limited to 'include/global.h')
-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 c32909c93..8b1925513 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" @@ -12,11 +13,16 @@ #define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided") #define ASM_DIRECT __attribute__((naked)) +// 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])) |