1 /* 2 * The so called TIFF types conflict with definitions from inttypes.h 3 * included from sys/types.h on AIX (at least using VisualAge compiler). 4 * We try to work around this by detecting this case. Defining 5 * _TIFF_DATA_TYPEDEFS_ short circuits the later definitions in tiff.h, and 6 * we will in the holes not provided for by inttypes.h. 7 * 8 * See http://bugzilla.remotesensing.org/show_bug.cgi?id=39 9 */ 10 11 #ifndef PANOTYPES_H 12 #define PANOTYPES_H 13 14 // First make sure that we have the int8_t, int16_t (32, and 64) and uint8_t equivalents 15 #include "pt_stdint.h" 16 17 18 19 /* The macro PT_UNUSED indicates that a function, function argument or 20 * variable may potentially be unused. 21 * Examples: 22 * 1) static int PT_UNUSED unused_function (char arg); 23 * 2) int foo (char unused_argument PT_UNUSED); 24 * 3) int unused_variable PT_UNUSED; 25 */ 26 27 #ifdef __GNUC__ 28 #define PT_UNUSED __attribute__ ((__unused__)) 29 #else 30 #define PT_UNUSED 31 #endif 32 33 /* Simple define to reduce warnings in printfs */ 34 #if __WORDSIZE == 64 /* 64 bit system */ 35 #define FMT_INT32 "%ld" 36 #else 37 #define FMT_INT32 "%d" 38 #endif 39 40 #endif 41 42