Fix up Rubinius specific library specs.
[rbx.git] / lib / ext / digest / defs.h
blobf7e8b7f791bb13cf8296b25108a2bda56829c931
1 /* -*- C -*-
2 * $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $
3 */
5 #ifndef DIGEST_DEFS_H
6 #define DIGEST_DEFS_H
8 #include "ruby.h"
9 #include <sys/types.h>
11 #include <sys/cdefs.h>
13 * #if defined(HAVE_SYS_CDEFS_H)
14 * # include <sys/cdefs.h>
15 * #endif
16 * #if !defined(__BEGIN_DECLS)
17 * # define __BEGIN_DECLS
18 * # define __END_DECLS
19 * #endif
22 #include <inttypes.h>
24 * #if defined(HAVE_INTTYPES_H)
25 * # include <inttypes.h>
26 * #elif !defined __CYGWIN__ || !defined __uint8_t_defined
27 * typedef unsigned char uint8_t;
28 * typedef unsigned int uint32_t;
29 * # if SIZEOF_LONG == 8
30 * typedef unsigned long uint64_t;
31 * # elif SIZEOF_LONG_LONG == 8
32 * typedef unsigned LONG_LONG uint64_t;
33 * # else
34 * # define NO_UINT64_T
35 * # endif
36 * #endif
39 /* Define if processor uses big-endian word */
40 #ifdef __BIG_ENDIAN__
41 #define WORDS_BIGENDIAN
42 #else /* !__BIG_ENDIAN__ */
43 /* #undef WORDS_BIGENDIAN */
44 #endif /* __BIG_ENDIAN__ */
46 #endif /* DIGEST_DEFS_H */