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
nagachika 99d1f2c5dc 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_5@64434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-18 04:18:32 +00:00
..
backward * include/ruby/backward/util.h: Good-by Borland-C. 2015-10-18 05:41:34 +00:00
backward.h vm.c: partially revert r60558 2017-12-01 12:26:40 +00:00
debug.h export rb_tracearg_callee_id(). 2017-11-16 07:41:33 +00:00
defines.h undef HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P on GCC 4.8 2017-12-23 16:17:57 +00:00
encoding.h encoding.h: include ruby/ruby.h 2016-10-23 02:41:43 +00:00
intern.h suppress warning: 'const' attribute on function returning 'void' 2017-12-18 09:03:59 +00:00
io.h * configure.in: check function attirbute const and pure, 2016-05-08 17:44:51 +00:00
missing.h merge revision(s) 63571,63572: [Backport #14816] 2018-08-18 04:18:32 +00:00
onigmo.h Update to Onigmo 6.1.3-669ac9997619954c298da971fcfacccf36909d05. 2017-12-01 13:50:13 +00:00
oniguruma.h Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
re.h re.c: rb_reg_region_copy 2014-12-01 21:30:58 +00:00
regex.h
ruby.h merge revision(s) 62116,62151: [Backport #14425] 2018-02-20 20:11:47 +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 * ext/openssl/depend: remove dependency from internal headers. 2014-05-14 10:55:38 +00:00
util.h util.h: remove my_getcwd 2017-11-26 01:36:33 +00:00
version.h include/ruby/version.h: Update API version. 2016-12-25 16:53:00 +00:00
vm.h
win32.h undef previous definition of SIZEOF_STRUCT_STAT_ST_INO 2017-12-11 16:06:41 +00:00