aboutsummaryrefslogtreecommitdiffstats
path: root/src/3rdparty/masm/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/masm/config.h')
-rw-r--r--src/3rdparty/masm/config.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/3rdparty/masm/config.h b/src/3rdparty/masm/config.h
index 80d4d4d8db..18bb9ed61a 100644
--- a/src/3rdparty/masm/config.h
+++ b/src/3rdparty/masm/config.h
@@ -48,9 +48,20 @@
#include <wtf/FastAllocBase.h>
#include <wtf/RefPtr.h>
#include <cmath>
-#else
+
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif // _MSC_VER
+#else // !__cplusplus
+
#include <math.h>
-#endif
+
+#ifdef _MSC_VER
+#define inline
+#include <stdio.h>
+#endif // _MSC_VER
+
+#endif // __cplusplus
#include <limits.h>
#endif // MASM_CONFIG_H