summaryrefslogtreecommitdiff
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-01-31 12:01:39 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-01-31 13:01:52 +0900
commitcdd75d4e7f0402a0537c516b7331a036347b0fa9 (patch)
tree84e64cd8924489dc07fcc33cfd9b8e471e6bb666 /win32/Makefile.sub
parent4942adf68cd2d8ab0a3ca64a787bdf55e119b337 (diff)
support C++ std::nullptr_t
C++ keyword `nullptr` represents a null pointer (note also that NULL is an integer in C++ due to its design flaw). Its type is `std::nullptr_t`, defined in <cstddef> standard header. Why not support it when the backend implementation can take a null pointer as an argument.
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 326bd7fa7a..ea5789fd3e 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -851,6 +851,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define HAVE_QSORT_S
!endif
#define HAVE_TYPE_NET_LUID 1
+!if $(MSC_VER) >= 1600
+#define HAVE_NULLPTR 1
+!endif
#define SETPGRP_VOID 1
#define RSHIFT(x,y) ((x)>>(int)y)
#define HAVE_RB_FD_INIT 1