From 9ae75d1450362acb61bfa1f0f77905b76f894838 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 25 Jun 2017 11:09:42 +0200 Subject: [PATCH] stat: Improve last change. * lib/stat-w32.c: Revert last change. Use generic idiom instead. --- ChangeLog | 5 +++++ lib/stat-w32.c | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 78c8257ee4..3c51e1faeb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-06-25 Bruno Haible + + stat: Improve last change. + * lib/stat-w32.c: Revert last change. Use generic idiom instead. + 2017-06-25 Paul Eggert stat: port to xlc 12.01 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 -/* Include this on all platforms, so that the compilation unit is nonempty. */ -#include - #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Ensure that defines FILE_ID_INFO. */ #undef _WIN32_WINNT #define _WIN32_WINNT _WIN32_WINNT_WIN8 +#include #include #include #include @@ -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 -- 2.39.5