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 /std/errno.hpp | |
parent | dffeb8b65930ba896b8fd4597bd7fd2de8455ef1 (diff) |
added std/errno.hpp according to suggestion in code review.
Diffstat (limited to 'std/errno.hpp')
-rw-r--r-- | std/errno.hpp | 19 |
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 |