summaryrefslogtreecommitdiff
path: root/src/libvterm
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-03-22 20:26:50 +0100
committerBram Moolenaar <Bram@vim.org>2018-03-22 20:26:50 +0100
commit7735dafb584c77cf1191eceaa0b4db46266c9cb8 (patch)
tree78e6ff4e37646877825eefcbdc38f04de0b4af10 /src/libvterm
parentb571c63d481b065dc22465300e41a4b8cff66120 (diff)
downloadvim-git-7735dafb584c77cf1191eceaa0b4db46266c9cb8.tar.gz
patch 8.0.1627: compiler warning for visibility attribute not supportedv8.0.1627
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)
Diffstat (limited to 'src/libvterm')
-rw-r--r--src/libvterm/src/vterm_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libvterm/src/vterm_internal.h b/src/libvterm/src/vterm_internal.h
index 3e7f1e5cb..a06d57775 100644
--- 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