Commit 8afa1e800b

Andrew Kelley <andrew@ziglang.org>
2019-04-29 19:18:16
fix build (unused function warning)
d3c88a89 needed some #ifdefs shuffled around
1 parent d3c88a8
Changed files (1)
src/libc_installation.cpp
@@ -322,11 +322,11 @@ static Error zig_libc_find_native_crt_dir_posix(ZigLibCInstallation *self, bool
 }
 #endif
 
+#if defined(ZIG_OS_WINDOWS)
 static Error zig_libc_find_native_static_crt_dir_posix(ZigLibCInstallation *self, bool verbose) {
     return zig_libc_cc_print_file_name("crtbegin.o", &self->static_crt_dir, true, verbose);
 }
 
-#if defined(ZIG_OS_WINDOWS)
 static Error zig_libc_find_native_include_dir_windows(ZigLibCInstallation *self, ZigWindowsSDK *sdk, bool verbose) {
     Error err;
     if ((err = os_get_win32_ucrt_include_path(sdk, &self->include_dir))) {