DEFINITIONS
This source file includes following functions.
1
2
3
4
5 #ifndef DEFS_H
6 #define DEFS_H
7
8 #include "ruby.h"
9 #include <sys/types.h>
10
11 #if defined(HAVE_SYS_CDEFS_H)
12 # include <sys/cdefs.h>
13 #endif
14 #if !defined(__BEGIN_DECLS)
15 # define __BEGIN_DECLS
16 # define __END_DECLS
17 #endif
18
19 #if defined(HAVE_INTTYPES_H)
20 # include <inttypes.h>
21 #else
22 typedef unsigned char uint8_t;
23 typedef unsigned int uint32_t;
24 # if SIZEOF_LONG == 8
25 typedef unsigned long uint64_t;
26 # elif defined(__GNUC__)
27 typedef unsigned long long uint64_t;
28 # elif defined(_MSC_VER)
29 typedef unsigned _int64 uint64_t;
30 # elif defined(__BORLANDC__)
31 typedef unsigned __int64 uint64_t;
32 # else
33 # define NO_UINT64_T
34 # endif
35 #endif
36
37 #endif