annotate lib/sys_types.in.h @ 15596:37c7cad1b0d9

New module 'sys_types'. * lib/sys_types.in.h: New file. * m4/sys_types_h.m4: New file. * modules/sys_types: New file. * doc/posix-headers/sys_types.texi: Mention the new module and the size_t problem on MSVC 9.
author Bruno Haible <bruno@clisp.org>
date Sun, 11 Sep 2011 18:14:00 +0200
parents
children cca80f706483
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15596
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Provide a more complete sys/time.h.
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 Copyright (C) 2011 Free Software Foundation, Inc.
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 This program is free software; you can redistribute it and/or modify
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 the Free Software Foundation; either version 2, or (at your option)
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 any later version.
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 GNU General Public License for more details.
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 along with this program; if not, write to the Free Software Foundation,
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #if __GNUC__ >= 3
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 @PRAGMA_SYSTEM_HEADER@
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #endif
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 @PRAGMA_COLUMNS@
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #ifndef _@GUARD_PREFIX@_SYS_TYPES_H
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 /* The include_next requires a split double-inclusion guard. */
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 #ifndef _@GUARD_PREFIX@_SYS_TYPES_H
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 #define _@GUARD_PREFIX@_SYS_TYPES_H
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 /* MSVC 9 defines size_t in <stddef.h>, not in <sys/types.h>. */
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 /* But avoid namespace pollution on glibc systems. */
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 && ! defined __GLIBC__
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 # include <stddef.h>
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 #endif
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 #endif /* _@GUARD_PREFIX@_SYS_TYPES_H */
37c7cad1b0d9 New module 'sys_types'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 #endif /* _@GUARD_PREFIX@_SYS_TYPES_H */