mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Try to fix compile error on win32
https://github.com/ruby/ruby/runs/213995386#step:7:810 ``` cxxanyargs.cpp C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt_malloc.h(54): error C2485: '__restrict': unrecognized extended attribute ```
This commit is contained in:
parent
1851dc269c
commit
99bfa6c165
1 changed files with 2 additions and 0 deletions
|
@ -861,11 +861,13 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
|
||||||
#define RUBY_LONGJMP(env,val) longjmp(env,val)
|
#define RUBY_LONGJMP(env,val) longjmp(env,val)
|
||||||
#define RUBY_JMP_BUF jmp_buf
|
#define RUBY_JMP_BUF jmp_buf
|
||||||
#define inline __inline
|
#define inline __inline
|
||||||
|
#ifndef __cplusplus
|
||||||
!if $(MSC_VER) >= 1800
|
!if $(MSC_VER) >= 1800
|
||||||
#define restrict __restrict
|
#define restrict __restrict
|
||||||
!else
|
!else
|
||||||
#define restrict /* not supported */
|
#define restrict /* not supported */
|
||||||
!endif
|
!endif
|
||||||
|
#endif
|
||||||
#define NEED_IO_SEEK_BETWEEN_RW 1
|
#define NEED_IO_SEEK_BETWEEN_RW 1
|
||||||
!if "$(MACHINE)" == "x86" || "$(ARCH)" == "x64"
|
!if "$(MACHINE)" == "x86" || "$(ARCH)" == "x64"
|
||||||
#define STACK_GROW_DIRECTION -1
|
#define STACK_GROW_DIRECTION -1
|
||||||
|
|
Loading…
Reference in a new issue