VC_VERSIONS[1600] = 'MSVC10 (Visual C++ 2010)';\r
VC_VERSIONS[1700] = 'MSVC11 (Visual C++ 2012)';\r
VC_VERSIONS[1800] = 'MSVC12 (Visual C++ 2013)';\r
+VC_VERSIONS[1900] = 'MSVC14 (Visual C++ 2014)';\r
\r
var VC_VERSIONS_SHORT = new Array();\r
VC_VERSIONS_SHORT[1200] = 'VC6';\r
VC_VERSIONS_SHORT[1600] = 'VC10';\r
VC_VERSIONS_SHORT[1700] = 'VC11';\r
VC_VERSIONS_SHORT[1800] = 'VC12';\r
+VC_VERSIONS_SHORT[1900] = 'VC14';\r
\r
if (PROGRAM_FILES == null) {\r
PROGRAM_FILES = "C:\\Program Files";\r
tmin = 0;\r
tmax = 0;\r
for (k = 0; k < ar_out.length; k++) {\r
- var t = ar_out[k][j].length;\r
- if (t > tmax) tmax = t;\r
- else if (t < tmin) tmin = t;\r
+ if(typeof ar_out[k][j] != 'undefined') {\r
+ var t = ar_out[k][j].length;\r
+ if (t > tmax) tmax = t;\r
+ else if (t < tmin) tmin = t;\r
+ }\r
}\r
if (tmax > header[j].length) {\r
max[j] = tmax;\r
line = ar_out[i];\r
for (j=0; j < l; j++) {\r
out += " " + line[j];\r
- for (var k = 0; k < (max[j] - line[j].length); k++){\r
- out += " ";\r
+ if(typeof line[j] != 'undefined') {\r
+ for (var k = 0; k < (max[j] - line[j].length); k++){\r
+ out += " ";\r
+ }\r
}\r
out += " |";\r
}\r
}\r
if (quote && typeof(value) == "string") {\r
value = '"' + value.replace(new RegExp('(["\\\\])', "g"), '\\$1') + '"';\r
- } else if (value.length == 0) {\r
+ } else if (typeof(value) != "undefined" && value.length == 0) {\r
value = '""';\r
}\r
var item = new Array(value, comment);\r
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]
+// Starting with VS2014, many of the C11 features are now included, so we only
+// need many of these typedefs and defines for older VS suites
+#if _MSC_VER < 1900
+
#ifndef _MSC_STDINT_H_ // [
#define _MSC_STDINT_H_
#ifndef uint8_t
typedef unsigned __int8 uint8_t;
#endif
-#ifndef u_char
-typedef unsigned __int8 u_char;
-#endif
typedef unsigned __int16 uint16_t;
#ifndef uint32_t
typedef unsigned __int32 uint32_t;
#endif // _MSC_STDINT_H_ ]
+
+#else
+#include <stdint.h>
+#endif
+
+#ifndef u_char
+typedef unsigned __int8 u_char;
+#endif