1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/digest/sha2/sha2.h: need to include defs.h instead of inttypes.h

because VC6 doesn't have the latter.

	* ext/digest/sha2/extconf.rb: rollback r24441.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2009-08-11 15:07:06 +00:00
parent 6c54c1f8de
commit 2791740667
3 changed files with 11 additions and 11 deletions

View file

@ -1,3 +1,10 @@
Wed Aug 12 00:04:33 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/digest/sha2/sha2.h: need to include defs.h instead of inttypes.h
because VC6 doesn't have the latter.
* ext/digest/sha2/extconf.rb: rollback r24441.
Tue Aug 11 21:42:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (num_divmod): fixed rdoc. [ruby-core:24862]

View file

@ -13,8 +13,6 @@ $objs = [
have_header("sys/cdefs.h")
have_header("inttypes.h")
$preload = %w[digest]
if have_type("uint64_t", "defs.h", $defs.join(' '))

View file

@ -49,11 +49,8 @@ extern "C" {
*/
#include <sys/types.h>
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef RUBY
# include "defs.h"
# ifdef HAVE_PROTOTYPES
# undef NOPROTO
# else
@ -70,11 +67,9 @@ extern "C" {
# endif /* BYTE_ORDER */
# define SHA2_USE_INTTYPES_H
#else /* RUBY */
#ifdef SHA2_USE_INTTYPES_H
#include <inttypes.h>
#endif /* SHA2_USE_INTTYPES_H */
# ifdef SHA2_USE_INTTYPES_H
# include <inttypes.h>
# endif /* SHA2_USE_INTTYPES_H */
#endif /* RUBY */