diff options
Diffstat (limited to 'gl/sys_types.in.h')
-rw-r--r-- | gl/sys_types.in.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gl/sys_types.in.h b/gl/sys_types.in.h index 574fe518ea..8139d98f6a 100644 --- a/gl/sys_types.in.h +++ b/gl/sys_types.in.h @@ -28,6 +28,18 @@ #ifndef _@GUARD_PREFIX@_SYS_TYPES_H #define _@GUARD_PREFIX@_SYS_TYPES_H +/* Override off_t if Large File Support is requested on native Windows. */ +#if @WINDOWS_64_BIT_OFF_T@ +/* Same as int64_t in <stdint.h>. */ +# if defined _MSC_VER +# define off_t __int64 +# else +# define off_t long long int +# endif +/* Indicator, for gnulib internal purposes. */ +# define _GL_WINDOWS_64_BIT_OFF_T 1 +#endif + /* MSVC 9 defines size_t in <stddef.h>, not in <sys/types.h>. */ /* But avoid namespace pollution on glibc systems. */ #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \ |