Skip to content

Commit 6e036ac

Browse files
committed
Improve MSVC check for inttypes.h
1 parent 2b30167 commit 6e036ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mono/eglib/glib.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
#include <stdint.h>
1717

18-
#ifndef _MSC_VER // inttypes.h doesn't exist on VS2010
18+
/* inttypes.h is only available from VS2013 */
19+
#if !defined(_MSC_VER) || (_MSC_VER >= 1800)
1920
#include <inttypes.h>
2021
#endif
2122

0 commit comments

Comments
 (0)