Skip to content

Commit 1095705

Browse files
committed
Check if restrict keyword is supported
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 24b1b43 commit 1095705

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,7 @@ AC_C_CHAR_UNSIGNED
11741174
AC_C_INLINE
11751175
AC_C_VOLATILE
11761176
AC_C_TYPEOF
1177+
AC_C_RESTRICT
11771178

11781179
AS_CASE(":$ac_cv_c_const:$ac_cv_c_volatile:",
11791180
[*:no:*], [AC_MSG_ERROR(ANSI C-conforming const and volatile are mandatory)])

win32/Makefile.sub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,11 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
866866
#define RUBY_LONGJMP(env,val) longjmp(env,val)
867867
#define RUBY_JMP_BUF jmp_buf
868868
#define inline __inline
869+
!if $(MSC_VER) >= 1900
870+
#define restrict __restrict
871+
!else
872+
#define restrict /* not supported */
873+
!endif
869874
#define NEED_IO_SEEK_BETWEEN_RW 1
870875
!if "$(MACHINE)" == "x86" || "$(ARCH)" == "x64" || "$(ARCH)" == "ia64"
871876
#define STACK_GROW_DIRECTION -1

0 commit comments

Comments
 (0)