Files
gbdk-2020/gbdk-lib/include/string.h
MichelIwaniec 983766b21c Add mos6502.lib build for GBDK installation
* Add assembly support routines from sdcc-svn/sdcc/device/lib/mos6502/ to gbdk-lib/libc/asm/mos6502/
* Add gbdk-lib/libc/asm/mos6502/Makefile, based on corresponding sm83 / z80 Makefiles
* Add CPU-specific include files to gbdk-lib/include/asm/mos6502/, based on corresponding sm83 / z80 include files
* Update gbdk-lib/include/asm/sm83/types.h and gbdk-lib/include/asm/z80.types.h to define REENTRANT as no-op
* Update gbdk-lib/include/stdio.h to use REENTRANT keyword for printf and sprintf
* Update gbdk-lib/include/stdlib.h to prevent #if-clause from redefining __reentrant as a no-op
* Update gbdk-lib/include/stdatomic.h to consider mos6502 in #if-clause
* Update gbdk-lib/libc/_divulong.c to consider mos6502 in #if-clause
* Add mos6502 to PORTS in Makefile, gbdk-lib/Makefile.common and gbdk-lib/libc/Makefile
* Update Makefile to include sdas6500 and sdld in sdcc-install rule
2022-06-06 00:38:21 +01:00

18 lines
332 B
C

/** @file string.h
Generic string functions.
*/
#ifndef STD_STRING_INCLUDE
#define STD_STRING_INCLUDE
#if defined(__PORT_sm83)
#include <asm/sm83/string.h>
#elif defined(__PORT_z80)
#include <asm/z80/string.h>
#elif defined(__PORT_mos6502)
#include <asm/mos6502/string.h>
#else
#error Unrecognized port
#endif
#endif