Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/cstring.hpp18
-rw-r--r--std/memcpy.hpp12
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