]> wimlib.net Git - wimlib/blobdiff - src/win32_apply.c
wimboot.c, win32_apply.c: Bracket file by #ifdef __WIN32__
[wimlib] / src / win32_apply.c
index 0cd67afabffa0a5932501567e632762cb4ffdbf5..2f169a57dbdcb6ebd9f21a2b6022db974fbc54c5 100644 (file)
@@ -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
@@ -1359,7 +1361,7 @@ begin_extract_stream_instance(const struct wim_lookup_table_entry *stream,
 
        /* Too many open handles?  */
        if (ctx->num_open_handles == MAX_OPEN_HANDLES) {
-               ERROR("Too many open handles!");
+               ERROR("Can't extract data: too many open files!");
                return WIMLIB_ERR_UNSUPPORTED;
        }
 
@@ -2079,3 +2081,5 @@ const struct apply_operations win32_apply_ops = {
        .extract                = win32_extract,
        .context_size           = sizeof(struct win32_apply_ctx),
 };
+
+#endif /* __WIN32__ */