[前][次][番号順一覧][スレッド一覧]

ruby-changes:28515

From: nobu <ko1@a...>
Date: Fri, 3 May 2013 13:29:31 +0900 (JST)
Subject: [ruby-changes:28515] nobu:r40567 (trunk): win32.h: INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX

nobu	2013-05-03 13:29:18 +0900 (Fri, 03 May 2013)

  New Revision: 40567

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40567

  Log:
    win32.h: INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX
    
    * include/ruby/win32.h (INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX): also
      should be defined when defining intptr_t and uintptr_t.
      bigdecimal.c requires the former two now.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/win32.h

Index: include/ruby/win32.h
===================================================================
--- include/ruby/win32.h	(revision 40566)
+++ include/ruby/win32.h	(revision 40567)
@@ -80,16 +80,21 @@ extern "C++" {			/* template without ext https://github.com/ruby/ruby/blob/trunk/include/ruby/win32.h#L80
 # if !defined(_INTPTR_T_DEFINED)
 #  ifdef _WIN64
 typedef __int64 intptr_t;
+#    define INTPTR_MAX 9223372036854775807I64
 #  else
 typedef int intptr_t;
+#    define INTPTR_MAX 2147483647
 #  endif
+#  define INTPTR_MIN (-INTPTR_MAX-1)
 #  define _INTPTR_T_DEFINED
 # endif
 # if !defined(_UINTPTR_T_DEFINED)
 #  ifdef _WIN64
 typedef unsigned __int64 uintptr_t;
+#    define UINTPTR_MAX 18446744073709551615UI64
 #  else
 typedef unsigned int uintptr_t;
+#    define UINTPTR_MAX 4294967295U
 #  endif
 #  define _UINTPTR_T_DEFINED
 # endif
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40566)
+++ ChangeLog	(revision 40567)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri May  3 13:29:11 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* include/ruby/win32.h (INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX): also
+	  should be defined when defining intptr_t and uintptr_t.
+	  bigdecimal.c requires the former two now.
+
 Fri May  3 13:22:12 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* win32/win32.c (poll_child_status): fix build error on older mingw.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]