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

ruby-changes:12721

From: akr <ko1@a...>
Date: Fri, 7 Aug 2009 20:20:20 +0900 (JST)
Subject: [ruby-changes:12721] Ruby:r24441 (ruby_1_8): * ext/digest/sha2/sha2.h: include inttypes.h for uint32_h, etc.

akr	2009-08-07 20:19:28 +0900 (Fri, 07 Aug 2009)

  New Revision: 24441

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

  Log:
    * ext/digest/sha2/sha2.h: include inttypes.h for uint32_h, etc.
    * ext/digest/sha2/extconf.rb: check inttypes.h.

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/ext/digest/sha2/extconf.rb
    branches/ruby_1_8/ext/digest/sha2/sha2.h

Index: ruby_1_8/ext/digest/sha2/sha2.h
===================================================================
--- ruby_1_8/ext/digest/sha2/sha2.h	(revision 24440)
+++ ruby_1_8/ext/digest/sha2/sha2.h	(revision 24441)
@@ -49,6 +49,10 @@
  */
 #include <sys/types.h>
 
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
 #ifdef RUBY
 # ifdef HAVE_PROTOTYPES
 #  undef NOPROTO 
Index: ruby_1_8/ext/digest/sha2/extconf.rb
===================================================================
--- ruby_1_8/ext/digest/sha2/extconf.rb	(revision 24440)
+++ ruby_1_8/ext/digest/sha2/extconf.rb	(revision 24441)
@@ -13,6 +13,8 @@
 
 have_header("sys/cdefs.h")
 
+have_header("inttypes.h")
+
 $preload = %w[digest]
 
 if have_type("uint64_t", "defs.h", $defs.join(' '))
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 24440)
+++ ruby_1_8/ChangeLog	(revision 24441)
@@ -1,3 +1,9 @@
+Fri Aug  7 20:18:21 2009  Tanaka Akira  <akr@f...>
+
+	* ext/digest/sha2/sha2.h: include inttypes.h for uint32_h, etc.
+
+	* ext/digest/sha2/extconf.rb: check inttypes.h.
+
 Fri Aug  7 02:03:48 2009  Akinori MUSHA  <knu@i...>
 
 	* ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an

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

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