Diff of /panotypes.h [3af83f] .. [15dc8a]  Maximize  Restore

  Switch to unified view

a/panotypes.h b/panotypes.h
...
...
5
 * _TIFF_DATA_TYPEDEFS_ short circuits the later definitions in tiff.h, and
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. 
6
 * we will in the holes not provided for by inttypes.h. 
7
 *
7
 *
8
 * See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
8
 * See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
9
 */
9
 */
10
#if defined(_H_INTTYPES) && defined(_ALL_SOURCE) && defined(USING_VISUALAGE)
11
10
11
#ifndef PANOTYPES_H
12
#define _PANO_DATA_TYPEDEFS_
12
#define PANOTYPES_H
13
typedef unsigned char pt_uint8;
14
typedef unsigned short pt_uint16;
15
typedef unsigned int pt_uint32;
16
13
17
#endif
14
// First make sure that we have the int8_t, int16_t (32, and 64) and uint8_t equivalents
15
#include "pt_stdint.h"
18
16
19
/*
20
 * Intrinsic data types required by the file format:
21
 *
22
 * 8-bit quantities   int8/uint8
23
 * 16-bit quantities  int16/uint16
24
 * 32-bit quantities  int32/uint32
25
 * strings        unsigned char*
26
 */
27
#ifndef _PANO_DATA_TYPEDEFS_
28
#define _PANO_DATA_TYPEDEFS_
29
17
30
#ifdef __STDC__
31
typedef   signed char pt_int8;    /* NB: non-ANSI compilers may not grok */
32
#else
33
typedef   char pt_int8;
34
#endif
35
typedef   unsigned char pt_uint8;
36
typedef   short pt_int16;
37
typedef   unsigned short pt_uint16;   /* sizeof (uint16) must == 2 */
38
#if defined(__s390x__) || defined(__ia64__) || defined(__alpha) || defined(__x86_64__) || (defined(_MIPS_SZLONG) && _MIPS_SZLONG == 64) || defined(__LP64__) || defined(_LP64)
39
typedef   int pt_int32;
40
typedef   unsigned int pt_uint32; /* sizeof (uint32) must == 4 */
41
#define FMT_INT32 "%d"
42
#else
43
typedef   long pt_int32;
44
typedef   unsigned long pt_uint32;    /* sizeof (uint32) must == 4 */
45
#define FMT_INT32 "%ld"
46
#endif
47
#endif /* _PANO_DATA_TYPEDEFS_ */
48
18
49
/* The macro PT_UNUSED indicates that a function, function argument or
19
/* The macro PT_UNUSED indicates that a function, function argument or
50
 * variable may potentially be unused.
20
 * variable may potentially be unused.
51
 * Examples:
21
 * Examples:
52
 *   1) static int PT_UNUSED unused_function (char arg);
22
 *   1) static int PT_UNUSED unused_function (char arg);
...
...
57
#ifdef __GNUC__
27
#ifdef __GNUC__
58
  #define PT_UNUSED __attribute__ ((__unused__))
28
  #define PT_UNUSED __attribute__ ((__unused__))
59
#else
29
#else
60
  #define PT_UNUSED
30
  #define PT_UNUSED
61
#endif
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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks