From fa26bf072a4e3c94449924da48d7a51a5513319e Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Thu, 4 May 2023 01:14:06 -0400 Subject: [build] ifdef _WIN32 before include fs_win32.h revert previous commit adding fs_win32.h to Makefile.am hdrs ifdef _WIN32 check before include fs_win32.h so that other platforms do not have to care --- src/Makefile.am | 2 +- src/fs_win32.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 5e6ad2f6..95d5e076 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -358,7 +358,7 @@ hdr = base64.h buffer.h burl.h network.h log.h http_kv.h keyvalue.h \ fdevent.h gw_backend.h connections.h base.h base_decls.h stat_cache.h \ plugin.h plugins.h plugin_config.h \ http_etag.h array.h \ - fdevent_impl.h fs_win32.h network_write.h configfile.h \ + fdevent_impl.h network_write.h configfile.h \ sock_addr_cache.h \ configparser.h \ rand.h \ diff --git a/src/fs_win32.c b/src/fs_win32.c index 8c51e824..afbe2e58 100644 --- a/src/fs_win32.c +++ b/src/fs_win32.c @@ -6,10 +6,10 @@ */ #include "first.h" -#include "fs_win32.h" - #ifdef _WIN32 +#include "fs_win32.h" + /* MS filesystem API does not support UTF-8? WTH? write our own; not hard */ #include -- cgit v1.2.1