changeset 13507:8bdcc8faeb32 v8.0.1627

patch 8.0.1627: compiler warning for visibility attribute not supported commit https://github.com/vim/vim/commit/7735dafb584c77cf1191eceaa0b4db46266c9cb8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 22 20:26:50 2018 +0100 patch 8.0.1627: compiler warning for visibility attribute not supported Problem: Compiler warning for visibility attribute not supported on MinGW builds. Solution: Don't add the attribute when we don't expect it to work. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Thu, 22 Mar 2018 20:30:08 +0100
parents cb955e703d3a
children 1496832b3716
files src/libvterm/src/vterm_internal.h src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/libvterm/src/vterm_internal.h
+++ b/src/libvterm/src/vterm_internal.h
@@ -5,7 +5,7 @@
 
 #include <stdarg.h>
 
-#if defined(__GNUC__)
+#if defined(__GNUC__) && !defined(__MINGW32__)
 # define INTERNAL __attribute__((visibility("internal")))
 # define UNUSED __attribute__((unused))
 #else
--- a/src/version.c
+++ b/src/version.c
@@ -767,6 +767,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1627,
+/**/
     1626,
 /**/
     1625,