~ubuntu-branches/ubuntu/natty/9base/natty

« back to all changes in this revision

Viewing changes to lib9/u.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-08-20 17:34:06 UTC
  • mfrom: (6.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090820173406-xpwqa9ruyevvc0ut
Tags: 1:3-3
* Updating maintainer field.
* Updating vcs fields.
* Updating package to standards version 3.8.3.
* Updatin variables writing in rules to consistent style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#define __BSD_VISIBLE 1 /* FreeBSD 5.x */
8
8
#if defined(__sun__)
9
9
#       define __EXTENSIONS__ 1 /* SunOS */
10
 
#       if defined(__SunOS5_6__) || defined(__SunOS5_7__) || defined(__SunOS5_8__)
 
10
#       if defined(__SunOS5_6__) || defined(__SunOS5_7__) || defined(__SunOS5_8__) || defined(__SunOS5_9__) || defined(__SunOS5_10__)
11
11
                /* NOT USING #define __MAKECONTEXT_V2_SOURCE 1 / * SunOS */
12
12
#       else
 
13
                /* What's left? */
13
14
#               define __MAKECONTEXT_V2_SOURCE 1
14
15
#       endif
15
16
#endif
20
21
#       define _XOPEN_SOURCE 1000
21
22
#       define _XOPEN_SOURCE_EXTENDED 1
22
23
#endif
 
24
#if defined(__FreeBSD__)
 
25
#       include <sys/cdefs.h>
 
26
        /* for strtoll */
 
27
#       undef __ISO_C_VISIBLE
 
28
#       define __ISO_C_VISIBLE 1999
 
29
#       undef __LONG_LONG_SUPPORTED
 
30
#       define __LONG_LONG_SUPPORTED
 
31
#endif
 
32
#if defined(__AIX__)
 
33
#       define _XOPEN_SOURCE 1
 
34
#endif
23
35
#define _LARGEFILE64_SOURCE 1
24
36
#define _FILE_OFFSET_BITS 64
25
37
 
33
45
#include <assert.h>
34
46
#include <setjmp.h>
35
47
#include <stddef.h>
36
 
#include <utf.h>
37
 
#include <fmt.h>
38
48
#include <math.h>
39
49
#include <ctype.h>      /* for tolower */
40
50
 
138
148
typedef uint16_t u16int;
139
149
typedef int16_t s16int;
140
150
typedef uintptr_t uintptr;
 
151
typedef intptr_t intptr;
141
152
typedef uint32_t u32int;
142
153
typedef int32_t s32int;
143
154
 
150
161
 * Funny-named symbols to tip off 9l to autolink.
151
162
 */
152
163
#define AUTOLIB(x)      static int __p9l_autolib_ ## x = 1;
 
164
#define AUTOFRAMEWORK(x) static int __p9l_autoframework_ ## x = 1;
153
165
 
154
166
/*
155
167
 * Gcc is too smart for its own good.
156
168
 */
157
169
#if defined(__GNUC__)
 
170
#       undef strcmp    /* causes way too many warnings */
158
171
#       if __GNUC__ >= 4 || (__GNUC__==3 && !defined(__APPLE_CC__))
159
172
#               undef AUTOLIB
160
173
#               define AUTOLIB(x) int __p9l_autolib_ ## x __attribute__ ((weak));
 
174
#               undef AUTOFRAMEWORK
 
175
#               define AUTOFRAMEWORK(x) int __p9l_autoframework_ ## x __attribute__ ((weak));
161
176
#       else
162
177
#               undef AUTOLIB
163
178
#               define AUTOLIB(x) static int __p9l_autolib_ ## x __attribute__ ((unused));
 
179
#               undef AUTOFRAMEWORK
 
180
#               define AUTOFRAMEWORK(x) static int __p9l_autoframework_ ## x __attribute__ ((unused));
164
181
#       endif
165
182
#endif
166
183