mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 17:48:02 +08:00
33 lines
919 B
Diff
33 lines
919 B
Diff
diff --git a/gettext-runtime/intl/printf-parse.c b/gettext-runtime/intl/printf-parse.c
|
|
index 0e2d2c7..e1dc39b 100644
|
|
--- a/gettext-runtime/intl/printf-parse.c
|
|
+++ b/gettext-runtime/intl/printf-parse.c
|
|
@@ -48,7 +48,9 @@
|
|
#include <stddef.h>
|
|
|
|
/* Get intmax_t. */
|
|
-#if defined IN_LIBINTL || defined IN_LIBASPRINTF
|
|
+#if defined _MSC_VER
|
|
+# define intmax_t long int
|
|
+#elif defined IN_LIBINTL || defined IN_LIBASPRINTF
|
|
# if HAVE_STDINT_H_WITH_UINTMAX
|
|
# include <stdint.h>
|
|
# endif
|
|
diff --git a/gettext-runtime/intl/xsize.h b/gettext-runtime/intl/xsize.h
|
|
index c256665..7400ea1 100644
|
|
--- a/gettext-runtime/intl/xsize.h
|
|
+++ b/gettext-runtime/intl/xsize.h
|
|
@@ -27,6 +27,12 @@
|
|
# include <stdint.h>
|
|
#endif
|
|
|
|
+#if defined _WIN32
|
|
+# define _GL_INLINE_HEADER_BEGIN
|
|
+# define _GL_INLINE_HEADER_END
|
|
+# define _GL_INLINE static inline
|
|
+#endif
|
|
+
|
|
#ifndef _GL_INLINE_HEADER_BEGIN
|
|
#error "Please include config.h first."
|
|
#endif
|