aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-04-02 17:30:00 +0100
committerGitHub <noreply@github.com>2018-04-02 17:30:00 +0100
commit39506c62cb89d42e876c49e7e353140cd6be61b7 (patch)
treeadb98cc1c29d61828b1fb61c46dab805efeceab6 /yage/core
parent52fb7104141eab51e6f5fbd54027b042ca7c1e08 (diff)
parent0b609923f0f4bf4de49178f1bd98c4eb2cd421c1 (diff)
downloadYAGE-39506c62cb89d42e876c49e7e353140cd6be61b7.tar.gz
YAGE-39506c62cb89d42e876c49e7e353140cd6be61b7.zip
Merge pull request #18 from ymherklotz/windows_compatibility
Windows compatibility
Diffstat (limited to 'yage/core')
-rw-r--r--yage/core/loglevel.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/yage/core/loglevel.h b/yage/core/loglevel.h
index 2247375d..51d28398 100644
--- a/yage/core/loglevel.h
+++ b/yage/core/loglevel.h
@@ -9,6 +9,13 @@
#ifndef YAGE_CORE_LOGLEVEL_H
#define YAGE_CORE_LOGLEVEL_H
+#ifdef _WIN32
+#ifdef ERROR
+#define YAGE_ERROR_TMP ERROR
+#undef ERROR
+#endif
+#endif
+
namespace yage
{
@@ -37,4 +44,11 @@ enum class LogLevel {
};
}
+#ifdef _WIN32
+#ifdef YAGE_ERROR_TMP
+#define ERROR YAGE_ERROR_TMP
+#undef YAGE_ERROR_TMP
+#endif
+#endif
+
#endif