~javier-lopez/ubuntu/quantal/cdo/sru-1023329

« back to all changes in this revision

Viewing changes to libcdi/src/dtypes.h

  • Committer: Bazaar Package Importer
  • Author(s): Alastair McKinstry
  • Date: 2010-09-22 15:58:09 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100922155809-u1d3vlmlqj02uxjt
Tags: 1.4.6.dfsg.1-1
New upstream release. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _DTYPES_H
 
2
#define _DTYPES_H
 
3
 
 
4
#include <stdio.h>
 
5
#include <limits.h>
 
6
 
 
7
/* INT32 */
 
8
 
 
9
#if ! defined (INT_MAX)
 
10
#  error INT_MAX undefined
 
11
#endif
 
12
 
 
13
#undef  INT32
 
14
#if  INT_MAX == 2147483647L
 
15
#  define  INT32  int
 
16
#elif LONG_MAX == 2147483647L
 
17
#  define  INT32  long
 
18
#endif
 
19
 
 
20
/* INT64 */
 
21
 
 
22
#if ! defined (LONG_MAX)
 
23
#  error LONG_MAX undefined
 
24
#endif
 
25
 
 
26
#undef  INT64
 
27
#if  LONG_MAX > 2147483647L
 
28
#  define  INT64  long
 
29
#else
 
30
#  define  INT64  long long
 
31
#endif
 
32
 
 
33
/* FLT32 */
 
34
 
 
35
#undef   FLT32
 
36
#define  FLT32  float
 
37
 
 
38
/* FLT64 */
 
39
 
 
40
#undef   FLT64
 
41
#define  FLT64  double
 
42
 
 
43
/* UINT32 and UINT64 */
 
44
 
 
45
#define  UINT32   unsigned INT32
 
46
#define  UINT64   unsigned INT64
 
47
 
 
48
#endif  /* _DTYPES_H */