Change back string.h as the change breaks things
This commit is contained in:
parent
58925bcf5d
commit
4ea1862300
2 changed files with 4 additions and 14 deletions
|
|
@ -1,22 +1,11 @@
|
|||
#ifndef _STRING_H_
|
||||
#define _STRING_H_
|
||||
|
||||
#include "stddef.h"
|
||||
typedef unsigned long size_t;
|
||||
|
||||
#ifdef __MWERKS__
|
||||
__declspec(section ".init") void* memcpy(void* dest, const void* src, size_t n);
|
||||
__declspec(section ".init") void __fill_mem(void* dest, int val, size_t count);
|
||||
__declspec(section ".init") void* memset(void* dest, int val, size_t count);
|
||||
#else
|
||||
void* memcpy(void* dest, const void* src, size_t n);
|
||||
void __fill_mem(void* dest, int val, size_t count);
|
||||
void* memset(void* dest, int val, size_t count);
|
||||
#endif
|
||||
void* memcpy(void* dst, const void* src, size_t n);
|
||||
void* memset(void* dst, int val, size_t n);
|
||||
|
||||
int memcmp(const void* lhs, const void* rhs, size_t count);
|
||||
void* __memrchr(const void* ptr, int ch, size_t count);
|
||||
void* memchr(const void* ptr, int ch, size_t count);
|
||||
void* memmove(void* dst, const void* src, size_t n);
|
||||
char* strrchr(const char* str, int c);
|
||||
char* strchr(const char* str, int c);
|
||||
int strncmp(const char* str1, const char* str2, size_t n);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#include "string.h"
|
||||
#include "stddef.h"
|
||||
|
||||
static int K1 = 0x80808080;
|
||||
static int K2 = 0xFEFEFEFF;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue