mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Include <string.h> in global.h
This commit is contained in:
parent
454e44aa43
commit
89bbecd34b
@ -1,6 +1,7 @@
|
|||||||
#ifndef GUARD_GLOBAL_H
|
#ifndef GUARD_GLOBAL_H
|
||||||
#define 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 "config.h" // we need to define config before gba headers as print stuff needs the functions nulled before defines.
|
||||||
#include "gba/gba.h"
|
#include "gba/gba.h"
|
||||||
|
|
||||||
@ -11,11 +12,16 @@
|
|||||||
#define asm_comment(x) asm volatile("@ -- " x " -- ")
|
#define asm_comment(x) asm volatile("@ -- " x " -- ")
|
||||||
#define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided")
|
#define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided")
|
||||||
|
|
||||||
|
// IDE support
|
||||||
#if defined (__APPLE__) || defined (__CYGWIN__)
|
#if defined (__APPLE__) || defined (__CYGWIN__)
|
||||||
void *memset(void *, int, size_t);
|
#define _(x) x
|
||||||
void *memcpy(void *, const void *, size_t);
|
#define __(x) x
|
||||||
int strcmp(const char *s1, const char *s2);
|
#define INCBIN_U8 {0}
|
||||||
char* strcpy(char *dst0, const char *src0);
|
#define INCBIN_U16 {0}
|
||||||
|
#define INCBIN_U32 {0}
|
||||||
|
#define INCBIN_S8 {0}
|
||||||
|
#define INCBIN_S16 {0}
|
||||||
|
#define INCBIN_S32 {0}
|
||||||
#endif // __APPLE__
|
#endif // __APPLE__
|
||||||
|
|
||||||
#define ARRAY_COUNT(array) (sizeof(array) / sizeof((array)[0]))
|
#define ARRAY_COUNT(array) (sizeof(array) / sizeof((array)[0]))
|
||||||
|
Loading…
Reference in New Issue
Block a user