diff options
author | Bruno Haible <bruno@clisp.org> | 2017-06-25 11:09:42 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-06-25 11:09:42 +0200 |
commit | 9ae75d1450362acb61bfa1f0f77905b76f894838 (patch) | |
tree | 347b9cf604f4c05f72cecbd924a2f1b30c37e4b6 /lib/stat-w32.c | |
parent | 736844e30bb369d203d45503a7cab9f560113cab (diff) | |
download | gnulib-9ae75d1450362acb61bfa1f0f77905b76f894838.tar.gz |
stat: Improve last change.
* lib/stat-w32.c: Revert last change. Use generic idiom instead.
Diffstat (limited to 'lib/stat-w32.c')
-rw-r--r-- | lib/stat-w32.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/stat-w32.c b/lib/stat-w32.c index 022d01ca8f..237e2aad87 100644 --- a/lib/stat-w32.c +++ b/lib/stat-w32.c @@ -18,15 +18,13 @@ #include <config.h> -/* Include this on all platforms, so that the compilation unit is nonempty. */ -#include <sys/types.h> - #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Ensure that <windows.h> defines FILE_ID_INFO. */ #undef _WIN32_WINNT #define _WIN32_WINNT _WIN32_WINNT_WIN8 +#include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <limits.h> @@ -414,4 +412,10 @@ _gl_fstat_by_handle (HANDLE h, const char *path, struct stat *buf) } } +#else + +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; + #endif |