shithub: libmujs

Download patch

ref: 9f0f88b8caa30fb804f739103cd948b37a48d3e7
parent: bd75628fe27044881aa8acb08d06b297530fd638
author: David Capello <davidcapello@gmail.com>
date: Wed Aug 9 06:43:07 EDT 2017

Use <stdint.h> for VS2012

This commit also added the required definition of uint32_t in case that
we cannot use <stdint.h> on older MSVC versions.

--- a/jsdtoa.c
+++ b/jsdtoa.c
@@ -2,7 +2,8 @@
 
 #include "jsi.h"
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER < 1700) /* VS2012 has stdint.h */
+typedef unsigned int uint32_t;
 typedef unsigned __int64 uint64_t;
 #else
 #include <stdint.h>