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

ruby-changes:52343

From: nobu <ko1@a...>
Date: Mon, 27 Aug 2018 14:39:17 +0900 (JST)
Subject: [ruby-changes:52343] nobu:r64551 (trunk): configure.ac: printf prifix for int64_t

nobu	2018-08-27 14:39:09 +0900 (Mon, 27 Aug 2018)

  New Revision: 64551

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

  Log:
    configure.ac: printf prifix for int64_t

  Modified files:
    trunk/configure.ac
    trunk/include/ruby/ruby.h
Index: configure.ac
===================================================================
--- configure.ac	(revision 64550)
+++ configure.ac	(revision 64551)
@@ -1558,6 +1558,9 @@ RUBY_DEFINT(uint128_t, 16, unsigned) https://github.com/ruby/ruby/blob/trunk/configure.ac#L1558
 RUBY_DEFINT(intptr_t, void*)
 RUBY_DEFINT(uintptr_t, void*, unsigned)
 RUBY_DEFINT(ssize_t, size_t, [], [@%:@include <sys/types.h>])	dnl may differ from int, so not use AC_TYPE_SSIZE_T.
+AS_IF([test "x$rb_cv_type_int64_t" != xno], [
+    RUBY_CHECK_PRINTF_PREFIX(int64_t, ll I64 l, 64)
+])
 
 AC_CACHE_CHECK(for stack end address, rb_cv_stack_end_address,
 [rb_cv_stack_end_address=no
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 64550)
+++ include/ruby/ruby.h	(revision 64551)
@@ -124,11 +124,13 @@ typedef char ruby_check_sizeof_voidp[SIZ https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L124
 #define PRI_SHORT_PREFIX "h"
 #endif
 
+#ifndef PRI_64_PREFIX
 #if SIZEOF_LONG == 8
 #define PRI_64_PREFIX PRI_LONG_PREFIX
 #elif SIZEOF_LONG_LONG == 8
 #define PRI_64_PREFIX PRI_LL_PREFIX
 #endif
+#endif
 
 #define RUBY_PRI_VALUE_MARK "\v"
 #if defined PRIdPTR && !defined PRI_VALUE_PREFIX

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

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