aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/common_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/common_types.h')
-rw-r--r--src/common/common_types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/common_types.h b/src/common/common_types.h
index 94e1406b..1b453e7f 100644
--- a/src/common/common_types.h
+++ b/src/common/common_types.h
@@ -28,6 +28,12 @@
#include <cstdint>
#include <cstdlib>
+#ifdef _MSC_VER
+#ifndef __func__
+#define __func__ __FUNCTION__
+#endif
+#endif
+
typedef std::uint8_t u8; ///< 8-bit unsigned byte
typedef std::uint16_t u16; ///< 16-bit unsigned short
typedef std::uint32_t u32; ///< 32-bit unsigned word