From bc38f3735bf6eaa2b856b1e05710b34bcfbbf787 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 7 Jun 2014 22:16:16 -0500 Subject: [PATCH] wimboot.c, win32_apply.c: Bracket file by #ifdef __WIN32__ This makes compiling all non-Windows source files manually (e.g. with clang-scan-build.sh) easier. --- src/wimboot.c | 3 +++ src/win32_apply.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/wimboot.c b/src/wimboot.c index 914f20fb..4d52accc 100644 --- a/src/wimboot.c +++ b/src/wimboot.c @@ -29,6 +29,7 @@ * along with wimlib; if not, see http://www.gnu.org/licenses/. */ +#ifdef __WIN32__ #ifdef HAVE_CONFIG_H # include "config.h" @@ -1175,3 +1176,5 @@ out: return ret; } + +#endif /* __WIN32__ */ diff --git a/src/win32_apply.c b/src/win32_apply.c index 4f4cf6eb..2f169a57 100644 --- a/src/win32_apply.c +++ b/src/win32_apply.c @@ -21,6 +21,8 @@ * along with wimlib; if not, see http://www.gnu.org/licenses/. */ +#ifdef __WIN32__ + #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -2079,3 +2081,5 @@ const struct apply_operations win32_apply_ops = { .extract = win32_extract, .context_size = sizeof(struct win32_apply_ctx), }; + +#endif /* __WIN32__ */ -- 2.43.0