From: Eric Biggers Date: Sun, 8 Jun 2014 03:16:16 +0000 (-0500) Subject: wimboot.c, win32_apply.c: Bracket file by #ifdef __WIN32__ X-Git-Tag: v1.7.0~50 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=bc38f3735bf6eaa2b856b1e05710b34bcfbbf787;ds=inline 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. --- 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__ */