1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
usa b6ab48d8b1 merge revision(s) 63571,63572: [Backport #14816]
`int isnan(double)` is a POSIXism

	- `isnan` is something relatively new.  We need to provide one for
	  those systems without it.  However:
	- X/Open defines `int isnan(double)`. Note the `int`.
	- C99 defines `isnan(x)` to be a macro.
	- C++11 nukes them all, undefines all the "masking macro"s, and
	  defines its own `bool isnan(double)`.  Note the `bool`.
	- In C++, `int isnan(double)` and `bool isnan(double)` are
	  incompatible.
	- So the mess.

	[Bug #14816][ruby-core:87364]
	further reading: https://developers.redhat.com/blog/2016/02/29/why-cstdlib-is-more-complicated-than-you-might-think/


	include/ruby/missing.h: defined(__cplusplus) before using __cplusplus

	* include/ruby/missing.h (isinf, isnan): For non-C++ programs,
	  defined(__cplusplus) may be needed before using __cplusplus.
	  [Bug #14816]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@64126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-07-30 13:57:35 +00:00
..
backward
backward.h remove backward macros 2016-06-14 14:43:02 +00:00
debug.h
defines.h Suppress warning: this use of "defined" may not be portable 2016-12-09 22:45:38 +00:00
encoding.h encoding.h: include ruby/ruby.h 2016-10-23 02:41:43 +00:00
intern.h Revert changes on rb_frame_method_id_and_class() 2016-12-04 05:40:18 +00:00
io.h
missing.h merge revision(s) 63571,63572: [Backport #14816] 2018-07-30 13:57:35 +00:00
onigmo.h merge revision(s) 57603: [Backport #12997] 2017-03-13 09:05:46 +00:00
oniguruma.h Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
re.h
regex.h
ruby.h merge revision(s) 61413: [Backport #14218] 2018-03-19 17:30:19 +00:00
st.h st.c: fix st_hash* functions [Bug #13019] 2016-12-21 06:22:16 +00:00
subst.h
thread.h
thread_native.h
util.h util.h: POSIX-noncompliant setenv 2016-09-07 08:50:39 +00:00
version.h
vm.h
win32.h merge revision(s) 57762: [Backport #13267] 2017-03-12 16:21:43 +00:00