Bug 1080297 - Use native inttypes.h on VS2013. r=glandium
--- a/mfbt/MSIntTypes.h
+++ b/mfbt/MSIntTypes.h
@@ -28,16 +28,20 @@
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef _MSC_VER // [
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]
+#if _MSC_VER >= 1800 // [ VS2013 (VC12) provides inttypes.h
+#include <inttypes.h>
+#else // _MSC_VER >= 1800 ][
+
#ifndef _MSC_INTTYPES_H_ // [
#define _MSC_INTTYPES_H_
#if _MSC_VER > 1000
#pragma once
#endif
#include <stdint.h>
@@ -191,8 +195,9 @@ imaxdiv_t __cdecl imaxdiv(intmax_t numer
#define strtoumax _strtoui64
// 7.8.2.4 The wcstoimax and wcstoumax functions
#define wcstoimax _wcstoi64
#define wcstoumax _wcstoui64
#endif // _MSC_INTTYPES_H_ ]
+#endif // _MSC_VER >= 1800 ]