10 #ifndef LIBETONYEK_UTILS_H_INCLUDED
11 #define LIBETONYEK_UTILS_H_INCLUDED
17 #include <boost/shared_ptr.hpp>
19 #include <libwpd/libwpd.h>
20 #include <libwpd-stream/libwpd-stream.h>
24 typedef unsigned char uint8_t;
25 typedef unsigned short uint16_t;
26 typedef unsigned uint32_t;
27 typedef unsigned __int64 uint64_t;
28 typedef signed char int8_t;
29 typedef short int16_t;
31 typedef __int64 int64_t;
43 #ifdef HAVE_INTTYPES_H
57 #define KEY_EPSILON 1e-9
58 #define KEY_ALMOST_ZERO(x) (std::fabs(x) < KEY_EPSILON)
60 #define KEY_NUM_ELEMENTS(array) (sizeof(array) / sizeof((array)[0]))
69 #define KEY_DEBUG_MSG(M) printf("%15s:%5d: ", FILE, LINE); printf M
70 #define KEY_DEBUG(M) M
72 #define KEY_DEBUG_MSG(M) printf M
73 #define KEY_DEBUG(M) M
76 #define KEY_DEBUG_MSG(M)
120 #endif // LIBETONYEK_UTILS_H_INCLUDED