mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
f3c029978c
commit
6bd94863d0
@ -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(). */
|
||||||
|
Loading…
Reference in New Issue
Block a user