Lines 376-384
Link Here
|
376 |
#if defined(UNIX_MACOSX) && defined(HAVE_MSYNC) |
376 |
#if defined(UNIX_MACOSX) && defined(HAVE_MSYNC) |
377 |
#define UNIX_DARWIN # MacOS X, a.k.a. Darwin |
377 |
#define UNIX_DARWIN # MacOS X, a.k.a. Darwin |
378 |
#endif |
378 |
#endif |
379 |
#if (__GLIBC__ >= 2) |
|
|
380 |
#define UNIX_GNU # glibc2 (may be UNIX_LINUX, UNIX_HURD or UNIX_FREEBSD) |
381 |
#endif |
382 |
|
379 |
|
383 |
|
380 |
|
384 |
# Choose the character set: |
381 |
# Choose the character set: |
Lines 1267-1272
Link Here
|
1267 |
|
1264 |
|
1268 |
#include <stdio.h> /* libc i/o */ |
1265 |
#include <stdio.h> /* libc i/o */ |
1269 |
|
1266 |
|
|
|
1267 |
# A more precise classification of the operating system: |
1268 |
# (This test works only after at least one system header has been included.) |
1269 |
#if (__GLIBC__ >= 2) |
1270 |
#define UNIX_GNU # glibc2 (may be UNIX_LINUX, UNIX_HURD or UNIX_FREEBSD) |
1271 |
#endif |
1272 |
|
1270 |
# Determine the offset of a component 'ident' in a struct of the type 'type': |
1273 |
# Determine the offset of a component 'ident' in a struct of the type 'type': |
1271 |
# See 0 as pointer to 'type', put a struct 'type' there and determine the |
1274 |
# See 0 as pointer to 'type', put a struct 'type' there and determine the |
1272 |
# address of its component 'ident' and return it as number: |
1275 |
# address of its component 'ident' and return it as number: |