aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sys_types.in.h
diff options
context:
space:
mode:
authorPaul Eggert2012-05-26 16:14:36 -0700
committerPaul Eggert2012-05-26 16:14:36 -0700
commitcaf8a9b2b301aba06735d403317b75b41df59bfe (patch)
treebfafb3cc0cf8a2f2394b4ed721e7c3d4891b78ab /lib/sys_types.in.h
parentfe453991eafc32a890297a2003ac532b9f579f92 (diff)
downloademacs-caf8a9b2b301aba06735d403317b75b41df59bfe.tar.gz
emacs-caf8a9b2b301aba06735d403317b75b41df59bfe.zip
Merge from gnulib.
Fixes: debbugs:11527
Diffstat (limited to 'lib/sys_types.in.h')
-rw-r--r--lib/sys_types.in.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/lib/sys_types.in.h b/lib/sys_types.in.h
new file mode 100644
index 00000000000..8139d98f6a6
--- /dev/null
+++ b/lib/sys_types.in.h
@@ -0,0 +1,51 @@
1/* Provide a more complete sys/types.h.
2
3 Copyright (C) 2011-2012 Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, see <http://www.gnu.org/licenses/>. */
17
18#if __GNUC__ >= 3
19@PRAGMA_SYSTEM_HEADER@
20#endif
21@PRAGMA_COLUMNS@
22
23#ifndef _@GUARD_PREFIX@_SYS_TYPES_H
24
25/* The include_next requires a split double-inclusion guard. */
26#@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@
27
28#ifndef _@GUARD_PREFIX@_SYS_TYPES_H
29#define _@GUARD_PREFIX@_SYS_TYPES_H
30
31/* Override off_t if Large File Support is requested on native Windows. */
32#if @WINDOWS_64_BIT_OFF_T@
33/* Same as int64_t in <stdint.h>. */
34# if defined _MSC_VER
35# define off_t __int64
36# else
37# define off_t long long int
38# endif
39/* Indicator, for gnulib internal purposes. */
40# define _GL_WINDOWS_64_BIT_OFF_T 1
41#endif
42
43/* MSVC 9 defines size_t in <stddef.h>, not in <sys/types.h>. */
44/* But avoid namespace pollution on glibc systems. */
45#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
46 && ! defined __GLIBC__
47# include <stddef.h>
48#endif
49
50#endif /* _@GUARD_PREFIX@_SYS_TYPES_H */
51#endif /* _@GUARD_PREFIX@_SYS_TYPES_H */