From: nobu@... Date: 2018-01-18T04:37:31+00:00 Subject: [ruby-core:84913] [Ruby trunk Bug#14366] Not possible to compile ruby C extension when using `-std=c90` Issue #14366 has been updated by nobu (Nobuyoshi Nakada). It your ruby is compiled with that option, `long long` should not be used. ---------------------------------------- Bug #14366: Not possible to compile ruby C extension when using `-std=c90` https://bugs.ruby-lang.org/issues/14366#change-69621 * Author: graywolf (Gray Wolf) * Status: Rejected * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [i386-mingw32] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- DeveloperHowto says that ruby should be C90, not C99, however it's not possible to compile C extension using `-std=c90` command line argument with error: ``` C:/Ruby25/include/ruby-2.5.0/ruby/defines.h:224:25: warning: ISO C90 does not support 'long long' [-Wlong-long] # define LONG_LONG long long ``` as far a I can tell, `long long` is only defined by `C99`, so `defines.h` probably shouldn't contain it. -- https://bugs.ruby-lang.org/ Unsubscribe: