Win32: skip dead code in symlink.c
authorEric Biggers <ebiggers3@gmail.com>
Fri, 22 Mar 2013 04:20:27 +0000 (23:20 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 22 Mar 2013 04:20:27 +0000 (23:20 -0500)
src/symlink.c

index 49f2053..31d4e7c 100644 (file)
 #include "sha1.h"
 #include <errno.h>
 
+/* None of this file is ever needed in Win32 builds because the reparse point
+ * buffers are not parsed. */
+#if !defined(__WIN32__) && !defined(WITH_FUSE)
+
 /*
  * Find the symlink target of a symbolic link or junction point in the WIM.
  *
@@ -266,3 +270,5 @@ out_free_symlink_buf:
        FREE(symlink_buf);
        return ret;
 }
+
+#endif /* !defined(__WIN32__) && !defined(WITH_FUSE) */