aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--yage/core/loglevel.h14
-rw-r--r--yage/data/input.h14
2 files changed, 28 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
diff --git a/yage/data/input.h b/yage/data/input.h
index 866793d8..22cadb62 100644
--- a/yage/data/input.h
+++ b/yage/data/input.h
@@ -9,6 +9,13 @@
#ifndef YAGE_CORE_INPUT_H
#define YAGE_CORE_INPUT_H
+#ifdef _WIN32
+#ifdef DELETE
+#define YAGE_DELETE_TMP DELETE
+#undef DELETE
+#endif
+#endif
+
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
@@ -148,4 +155,11 @@ enum class key {
} // namepsace yage
+#ifdef _WIN32
+#ifdef YAGE_DELETE_TMP
+#define DELETE YAGE_DELETE_TMP
+#undef YAGE_DELETE_TMP
+#endif
+#endif
+
#endif