~ubuntu-branches/ubuntu/utopic/xfsprogs/utopic-proposed

« back to all changes in this revision

Viewing changes to include/platform_defs.h.in

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Scott
  • Date: 2009-05-06 11:29:18 UTC
  • mfrom: (8.1.1 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090506112918-uzoyzcp90rtr8td7
Tags: 3.0.2
New bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <stddef.h>
29
29
#include <stdlib.h>
30
30
#include <string.h>
 
31
#include <stdint.h>
31
32
#include <unistd.h>
 
33
#include <pthread.h>
 
34
#include <ctype.h>
32
35
#include <sys/types.h>
33
36
 
34
37
#undef HAVE___U32
45
48
typedef signed long long int    __s64;
46
49
#endif
47
50
 
48
 
typedef __u16                   __be16;
49
 
typedef __u32                   __be32;
50
 
typedef __u64                   __be64;
 
51
#ifdef __CHECKER__
 
52
#define __bitwise               __attribute__((bitwise))
 
53
#define __force                 __attribute__((force))
 
54
#else
 
55
#define __bitwise
 
56
#define __force
 
57
#endif
 
58
 
 
59
typedef __u16   __bitwise       __be16;
 
60
typedef __u32   __bitwise       __be32;
 
61
typedef __u64   __bitwise       __be64;
 
62
 
 
63
typedef struct filldir          filldir_t;
51
64
 
52
65
#if defined(__linux__)
53
66
#include <xfs/linux.h>
116
129
#ifdef ENABLE_GETTEXT
117
130
# include <libintl.h>
118
131
# define _(x)                   gettext(x)
 
132
# define N_(x)                   x
119
133
#else
120
134
# define _(x)                   (x)
 
135
# define N_(x)                   x
121
136
# define textdomain(d)          do { } while (0)
122
137
# define bindtextdomain(d,dir)  do { } while (0)
123
138
#endif
124
139
#include <locale.h>
125
140
 
126
141
#ifdef DEBUG
127
 
# define ASSERT         assert
 
142
# define ASSERT(EX)     assert(EX)
128
143
#else
129
144
# define ASSERT(EX)     ((void) 0)
130
145
#endif
147
162
                                        | (minor&IRIX_DEV_MAXMIN)))
148
163
#define IRIX_DEV_TO_KDEVT(dev)  makedev(IRIX_DEV_MAJOR(dev),IRIX_DEV_MINOR(dev))
149
164
 
 
165
/* ARM old ABI has some weird alignment/padding */
 
166
#if defined(__arm__) && !defined(__ARM_EABI__)
 
167
#define __arch_pack __attribute__((packed))
 
168
#else
 
169
#define __arch_pack
 
170
#endif
 
171
 
150
172
#endif  /* __XFS_PLATFORM_DEFS_H__ */