Project

General

Profile

Actions

Bug #14366

closed

Not possible to compile ruby C extension when using `-std=c90`

Added by graywolf (Gray Wolf) about 6 years ago. Updated about 6 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0p0 (2017-12-25 revision 61468) [i386-mingw32]
[ruby-core:84898]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0