]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove useless '#ifndef LIST_H' condition.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 24 Mar 2009 09:29:24 +0000 (05:29 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 24 Mar 2009 09:29:24 +0000 (05:29 -0400)
SVN-Revision: 839

cpio/cpio_cygwin.c
cpio/cpio_windows.c
cpio/test/CMakeLists.txt
libarchive/test/CMakeLists.txt
tar/bsdtar_cygwin.c
tar/bsdtar_windows.c
tar/test/CMakeLists.txt

index f2157c55f85c62e7d3d6214143e87e50123adee8..2c8d072bc3309c557485de06c9957361fa080636 100644 (file)
@@ -42,7 +42,6 @@
 
 #include "cpio.h"
 
-#ifndef LIST_H
 static int
 _is_privileged(HANDLE thandle, const char *sidlist[])
 {
@@ -134,6 +133,4 @@ bsdcpio_is_privileged()
        return (ret);
 }
 
-#endif /* LIST_H */
-
 #endif
index 4742aead0339d9444054c06d0019724fe76dacdf..25c680de262bdd459c6b323f03c574c4394a0824 100644 (file)
@@ -42,7 +42,6 @@
 
 #include "cpio.h"
 
-#ifndef LIST_H
 int
 bsdcpio_is_privileged()
 {
@@ -56,6 +55,4 @@ bsdcpio_is_privileged()
        return (ret);
 }
 
-#endif /* LIST_H */
-
 #endif
index cfb4fb97f297c807c1161ac072b16b4e958f0d91..ef7ccad6876ddef80377b461daeb108dabd076f1 100644 (file)
@@ -48,7 +48,6 @@ IF(ENABLE_CPIO AND ENABLE_TEST)
   # Register target
   #
   ADD_EXECUTABLE(bsdcpio_test ${bsdcpio_test_SOURCES})
-  SET_PROPERTY(TARGET bsdcpio_test PROPERTY COMPILE_DEFINITIONS LIST_H)
   SET(num 0)
   FOREACH(test ${bsdcpio_test_SOURCES})
     IF(test MATCHES "^test_[^/]+[.]c$")
index 6d4e6a3af760cde6a07d782e5fa02f19f5af6df7..b87dabce997f6c32ffcc7502abbb6c13333a6d37 100644 (file)
@@ -104,7 +104,7 @@ IF(ENABLE_TEST)
   ADD_EXECUTABLE(libarchive_test ${libarchive_test_SOURCES})
   TARGET_LINK_LIBRARIES(libarchive_test ${ADDITIONAL_LIBS})
   SET_PROPERTY(TARGET libarchive_test PROPERTY COMPILE_DEFINITIONS
-    LIBARCHIVE_STATIC LIST_H)
+    LIBARCHIVE_STATIC)
   SET(num 0)
   FOREACH(test ${libarchive_test_SOURCES})
     IF(test MATCHES "^test_[^/]+[.]c$")
index d31f1122d65628f8527820a52cb7f1bf11094118..0408157f3184abdfd4ac4a618ef92450a7848aef 100644 (file)
@@ -42,7 +42,6 @@
 
 #include "bsdtar.h"
 
-#ifndef LIST_H
 static int
 _is_privileged(HANDLE thandle, const char *sidlist[])
 {
@@ -135,7 +134,4 @@ bsdtar_is_privileged(struct bsdtar *bsdtar)
        return (ret);
 }
 
-
-#endif /* LIST_H */
-
 #endif
index 5a566ac3b189e66ed94ffc5b1f5709d2b0d32b5e..9fc48aa8bac63bcdc26b3a179f8672ebf0e5625e 100644 (file)
@@ -42,7 +42,6 @@
 
 #include "bsdtar.h"
 
-#ifndef LIST_H
 int
 bsdtar_is_privileged(struct bsdtar *bsdtar)
 {
@@ -141,6 +140,4 @@ try_plain:
        write_hierarchy(bsdtar, a, path);
 }
 
-#endif /* LIST_H */
-
 #endif
index b28325423288d046808aa911cb933d9169403b9d..30f5713a9f1b6a2dc11da3580658a3095e13f65f 100644 (file)
@@ -38,7 +38,6 @@ IF(ENABLE_TAR AND ENABLE_TEST)
   # Register target
   #
   ADD_EXECUTABLE(bsdtar_test ${bsdtar_test_SOURCES})
-  SET_PROPERTY(TARGET bsdtar_test PROPERTY COMPILE_DEFINITIONS LIST_H)
   SET(num 0)
   FOREACH(test ${bsdtar_test_SOURCES})
     IF(test MATCHES "^test_[^/]+[.]c$")