diff options
author | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2018-11-20 21:11:50 +0800 |
---|---|---|
committer | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2018-11-20 21:11:50 +0800 |
commit | fbe7d0d3bb9eb3570d5a5f8f611bb41427d06b33 (patch) | |
tree | 59a14a39dde695d7a3ed0f8c0b450fa4d071b93b /include/global.h | |
parent | ff37bfefe07cdbb6e087e0123576a1b338145dce (diff) | |
parent | 0429b2e5bb2a2c4467518bf921bd900927e84205 (diff) |
Merge remote-tracking branch 'PikalaxALT/libc'
Added dependency scanning, used standard flags to link libs
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/global.h b/include/global.h index 75592d5..66c1b6d 100644 --- a/include/global.h +++ b/include/global.h @@ -1,10 +1,11 @@ #ifndef GUARD_GLOBAL_H #define GUARD_GLOBAL_H +#include <string.h> #include "gba/gba.h" // IDE support -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__CYGWIN__) #define _(x) x #define __(x) x #define INCBIN_U8 {0} @@ -13,9 +14,6 @@ #define INCBIN_S8 {0} #define INCBIN_S16 {0} #define INCBIN_S32 {0} -void * memcpy (void *, const void *, size_t); -void * memset (void *, int, size_t); -int strcmp (const char *, const char *); #endif // Prevent cross-jump optimization. @@ -26,14 +24,6 @@ int strcmp (const char *, const char *); #define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided\n") -#define nonmatching(fndec, x) {\ -__attribute__((naked))\ -fndec\ -{\ - asm_unified(x);\ -}\ -} - #define ARRAY_COUNT(array) (sizeof(array) / sizeof((array)[0])) #endif // GUARD_GLOBAL_H |