diff options
Diffstat (limited to 'std')
-rw-r--r-- | std/cstring.hpp | 18 | ||||
-rw-r--r-- | std/memcpy.hpp | 12 |
2 files changed, 18 insertions, 12 deletions
diff --git a/std/cstring.hpp b/std/cstring.hpp new file mode 100644 index 0000000000..7cc82ec986 --- /dev/null +++ b/std/cstring.hpp @@ -0,0 +1,18 @@ +// Use this header for the functions: +// - strlen, strcpy, strcmp +// - memcpy, memcmp, memset + +#pragma once +#include "common_defines.hpp" + +#ifdef new +#undef new +#endif + +#include <cstring> + +// Use string.h header if cstring is absent for target platform. + +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif diff --git a/std/memcpy.hpp b/std/memcpy.hpp deleted file mode 100644 index cf31404b98..0000000000 --- a/std/memcpy.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once -#include "common_defines.hpp" - -#ifdef new -#undef new -#endif - -#include <string.h> - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif |