Go to the documentation of this file. 23 #ifndef LIBWPS_INTERNAL_H 24 #define LIBWPS_INTERNAL_H 39 #include <librevenge-stream/librevenge-stream.h> 40 #include <librevenge/librevenge.h> 43 #define M_PI 3.14159265358979323846 46 #if defined(_MSC_VER) || defined(__DJGPP__) 47 typedef signed char int8_t;
48 typedef unsigned char uint8_t;
49 typedef signed short int16_t;
50 typedef unsigned short uint16_t;
51 typedef signed int int32_t;
52 typedef unsigned int uint32_t;
54 # include <inttypes.h> 65 # define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0) 66 # define localtime_r(tp,tmp) (localtime(tp)?(*(tmp)=*localtime(tp),(tmp)):0) 77 #if defined(HAVE_CLANG_ATTRIBUTE_FALLTHROUGH) 78 # define WPS_FALLTHROUGH [[clang::fallthrough]] 79 #elif defined(HAVE_GCC_ATTRIBUTE_FALLTHROUGH) 80 # define WPS_FALLTHROUGH __attribute__((fallthrough)) 82 # define WPS_FALLTHROUGH ((void) 0)