ruby-changes:49442
From: shyouhei <ko1@a...>
Date: Tue, 2 Jan 2018 19:19:34 +0900 (JST)
Subject: [ruby-changes:49442] shyouhei:r61551 (trunk): flexible array member is a C99ism
shyouhei 2018-01-02 15:41:48 +0900 (Tue, 02 Jan 2018) New Revision: 61551 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61551 Log: flexible array member is a C99ism Modified files: trunk/ext/bigdecimal/bigdecimal.h Index: ext/bigdecimal/bigdecimal.h =================================================================== --- ext/bigdecimal/bigdecimal.h (revision 61550) +++ ext/bigdecimal/bigdecimal.h (revision 61551) @@ -227,7 +227,9 @@ extern VALUE rb_cBigDecimal; https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.h#L227 #define VP_SIGN_POSITIVE_INFINITE 3 /* Positive infinite number */ #define VP_SIGN_NEGATIVE_INFINITE -3 /* Negative infinite number */ -#ifdef __GNUC__ +#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) +#define FLEXIBLE_ARRAY_SIZE /* */ +#elif defined(__GNUC__) && !defined(__STRICT_ANSI__) #define FLEXIBLE_ARRAY_SIZE 0 #else #define FLEXIBLE_ARRAY_SIZE 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/