diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2013-01-09 20:19:28 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:48:27 +0300 |
commit | d3cf52153c30b8dd6ba89d261a66a736d250621e (patch) | |
tree | f66a7a05d888444a9669ccfc9a1f0a29db490edf | |
parent | dffeb8b65930ba896b8fd4597bd7fd2de8455ef1 (diff) |
added std/errno.hpp according to suggestion in code review.
-rw-r--r-- | base/condition_posix.cpp | 3 | ||||
-rw-r--r-- | std/errno.hpp | 19 |
2 files changed, 20 insertions, 2 deletions
diff --git a/base/condition_posix.cpp b/base/condition_posix.cpp index 65df58ba7e..be679649b4 100644 --- a/base/condition_posix.cpp +++ b/base/condition_posix.cpp @@ -7,8 +7,7 @@ #include "../std/stdint.hpp" #include "../std/systime.hpp" - -#include <sys/errno.h> +#include "../std/errno.hpp" #include <pthread.h> 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 |