]> wimlib.net Git - wimlib/blobdiff - src/dentry.c
Windows native build
[wimlib] / src / dentry.c
index 1c2fd145df9d8d056aa7aec7e2f34d5a4488436a..15a44cee981c6e97ac64f0bc5ec057344f31fd0c 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 /*
- * Copyright (C) 2012 Eric Biggers
+ * Copyright (C) 2012, 2013 Eric Biggers
  *
  * This file is part of wimlib, a library for working with WIM files.
  *
@@ -371,7 +371,7 @@ void calculate_subdir_offsets(struct wim_dentry *dentry, u64 *subdir_offset_p)
 static int compare_names(const char *name_1, u16 len_1,
                         const char *name_2, u16 len_2)
 {
-       int result = strncasecmp(name_1, name_2, min(len_1, len_2));
+       int result = strncmp(name_1, name_2, min(len_1, len_2));
        if (result) {
                return result;
        } else {
@@ -801,8 +801,8 @@ int increment_dentry_refcnt(struct wim_dentry *dentry, void *ignore)
 /*
  * Links a dentry into the directory tree.
  *
- * @dentry: The dentry to link.
  * @parent: The dentry that will be the parent of @dentry.
+ * @dentry: The dentry to link.
  */
 bool dentry_add_child(struct wim_dentry * restrict parent,
                      struct wim_dentry * restrict child)
@@ -974,6 +974,7 @@ void inode_remove_ads(struct wim_inode *inode, u16 idx,
        inode->i_num_ads--;
 }
 
+#ifndef __WIN32__
 int inode_get_unix_data(const struct wim_inode *inode,
                        struct wimlib_unix_data *unix_data,
                        u16 *stream_idx_ret)
@@ -1043,6 +1044,7 @@ int inode_set_unix_data(struct wim_inode *inode,
                inode_remove_ads(inode, stream_idx, lookup_table);
        return ret;
 }
+#endif /* !__WIN32__ */
 
 /*
  * Reads the alternate data stream entries of a WIM dentry.