vcpkg/ports/gettext/0001-Fix-macro-definitions.patch

18 lines
438 B
Diff
Raw Normal View History

2018-03-06 03:00:51 +08:00
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
2016-11-02 03:12:26 +08:00
@@ -27,6 +27,12 @@
# include <stdint.h>
#endif
2018-03-06 03:00:51 +08:00
+#if defined _WIN32
2016-11-02 03:12:26 +08:00
+# 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