diff options
author | vng <viktor.govako@gmail.com> | 2014-03-26 01:36:47 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:13:53 +0300 |
commit | 1c65c4b6dd784bff012771758f578fadda34e8fb (patch) | |
tree | 6c2922f059b04c9172ea0bcaa2dea06bfcdfd430 /std | |
parent | 9f6c81682484614b9f6704b202bdea24337577f7 (diff) |
Correct using of cstring and memcpy includes.
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 |