Project

General

Profile

Actions

Bug #8495

closed

include/ruby/win32.h assumes that __STRICT_ANSI__ isn’t set

Added by now (Nikolai Weibull) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
-
ruby -v:
2.0.0
[ruby-core:<unknown>]

Description

Hi!

include/ruby/win32.h assumes that STRICT_ANSI isn’t set when it uses _controlfp() in rb_w32_pow(). This isn’t the case if you give, for example, -std=c99 to gcc. If STRICT_ANSI is set, float.h won’t define _controlfp(), leading to compilation issues.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0