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:
authorrachytski <siarhei.rachytski@gmail.com>2013-01-09 20:19:28 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:48:27 +0300
commitd3cf52153c30b8dd6ba89d261a66a736d250621e (patch)
treef66a7a05d888444a9669ccfc9a1f0a29db490edf /std
parentdffeb8b65930ba896b8fd4597bd7fd2de8455ef1 (diff)
added std/errno.hpp according to suggestion in code review.
Diffstat (limited to 'std')
-rw-r--r--std/errno.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/std/errno.hpp b/std/errno.hpp
new file mode 100644
index 0000000000..c4f23e6959
--- /dev/null
+++ b/std/errno.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "common_defines.hpp"
+#include "target_os.hpp"
+
+#ifdef new
+#undef new
+#endif
+
+// for errno
+#ifdef OMIM_OS_WINDOWS
+ #include <errno.h>
+#else
+ #include <sys/errno.h>
+#endif
+
+#ifdef DEBUG_NEW
+#define new DEBUG_NEW
+#endif