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

ruby-changes:43459

From: nobu <ko1@a...>
Date: Wed, 29 Jun 2016 13:37:17 +0900 (JST)
Subject: [ruby-changes:43459] nobu:r55533 (trunk): Use LONG_LONG

nobu	2016-06-29 13:37:12 +0900 (Wed, 29 Jun 2016)

  New Revision: 55533

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55533

  Log:
    Use LONG_LONG
    
    * missing/crypt.h (B64): use LONG_LONG instead of long long
      directly.

  Modified files:
    trunk/missing/crypt.h
Index: missing/crypt.h
===================================================================
--- missing/crypt.h	(revision 55532)
+++ missing/crypt.h	(revision 55533)
@@ -41,6 +41,17 @@ https://github.com/ruby/ruby/blob/trunk/missing/crypt.h#L41
 #endif
 #endif
 
+#ifndef LONG_LONG
+# if SIZEOF_LONG_LONG > 0
+#   define LONG_LONG long long
+# elif SIZEOF___INT64 > 0
+#   define HAVE_LONG_LONG 1
+#   define LONG_LONG __int64
+#   undef SIZEOF_LONG_LONG
+#   define SIZEOF_LONG_LONG SIZEOF___INT64
+# endif
+#endif
+
 /*
  * define "LONG_IS_32_BITS" only if sizeof(long)==4.
  * This avoids use of bit fields (your compiler may be sloppy with them).
@@ -56,7 +67,7 @@ https://github.com/ruby/ruby/blob/trunk/missing/crypt.h#L67
 #if SIZEOF_LONG == 8
 #define	B64	long
 #elif SIZEOF_LONG_LONG == 8
-#define	B64	long long
+#define	B64	LONG_LONG
 #endif
 
 /*

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

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