diff src/libvterm/src/vterm_internal.h @ 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 a62b0bbc8834
children 9f857e6310b6
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