]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.1710: building with Ruby fails v8.0.1710
authorBram Moolenaar <Bram@vim.org>
Sat, 14 Apr 2018 14:12:30 +0000 (16:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 14 Apr 2018 14:12:30 +0000 (16:12 +0200)
Problem:    Building with Ruby fails.
Solution:   Don't add -ansi when building with Ruby.

src/auto/configure
src/configure.ac
src/version.c

index e9ee0171f7292d9355c044d4f257dcc68348612c..29dadf2747987c77c4435124f0f7e16dbba5c94d 100755 (executable)
@@ -14434,7 +14434,7 @@ if test "$zOSUnix" = "yes"; then
        CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
 fi
 
-if test "$GCC" = yes -a "$GUITYPE" != "GTK"; then
+if test "$GCC" = yes -a "$GUITYPE" != "GTK" -a "X$RUBY_CFLAGS" = "X"; then
   CFLAGS="$CFLAGS -ansi"
 fi
 
index 27309b205deab42b5efb8730190866020e0bb10a..eef443b741143b8f64f7dacb20797a81cfeb9223 100644 (file)
@@ -4403,9 +4403,10 @@ if test "$zOSUnix" = "yes"; then
        CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
 fi
 
-dnl Declare what standards the code should comply with.  But not when using
-dnl GTK, the header files cause all kinds of warnings.
-if test "$GCC" = yes -a "$GUITYPE" != "GTK"; then
+dnl Declare what standards the code should comply with.
+dnl But not when using GTK, the header files cause all kinds of warnings.
+dnl But not when using Ruby, it needs "inline".
+if test "$GCC" = yes -a "$GUITYPE" != "GTK" -a "X$RUBY_CFLAGS" = "X"; then
   CFLAGS="$CFLAGS -ansi"
 fi
 
index b24935f14d2e0fda6ba308e5b7ee7d44ee3673a1..b340f11701fe3c4336ff9e136bf4e8464a94c181 100644 (file)
@@ -762,6 +762,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1710,
 /**/
     1709,
 /**/