glib/gnulib/printf-parse.c: Fix build on Visual Studio 2008

Visual Studio 2008 does not come with stdint.h, so define intmax_t instead
on Visual Studio 2008 so that the code will continue to build.  This was
previously unnoticed as building GTK+ since 3.16 requires an
implementation of stdint.h (such as msinttypes), and it took care of the
need of including the stdint.h header here, but people could be very well
using GLib without using GTK+ 3.x.
This commit is contained in:
Chun-wei Fan 2016-05-25 14:13:33 +08:00
parent f3c029978c
commit 6bd94863d0

View File

@ -60,7 +60,11 @@
# include <inttypes.h> # include <inttypes.h>
# endif # endif
#else #else
# include <stdint.h> # if !defined (_MSC_VER) || (_MSC_VER >= 1600)
# include <stdint.h>
# else
typedef signed __int64 intmax_t;
# endif
#endif #endif
/* malloc(), realloc(), free(). */ /* malloc(), realloc(), free(). */