mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
avoid defining inline
Recent (since 2012 maybe?) MSVC ships a header named xkeycheck.h, which (kindly!) aborts compilation on redefinition of C++ keywords. Let's not define this in case of C++.
This commit is contained in:
parent
4e6bae47c8
commit
49bb2e64cc
1 changed files with 1 additions and 1 deletions
|
@ -860,8 +860,8 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
|
|||
#define RUBY_SETJMP(env) _setjmp(env)
|
||||
#define RUBY_LONGJMP(env,val) longjmp(env,val)
|
||||
#define RUBY_JMP_BUF jmp_buf
|
||||
#define inline __inline
|
||||
#ifndef __cplusplus
|
||||
#define inline __inline
|
||||
!if $(MSC_VER) >= 1800
|
||||
#define restrict __restrict
|
||||
!else
|
||||
|
|
Loading…
Add table
Reference in a new issue