]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
cpio: Simplify WINAPI_FAMILIY_PARTITION check 3108/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 3 Jun 2026 18:33:37 +0000 (20:33 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 3 Jun 2026 18:51:04 +0000 (20:51 +0200)
The macro is defined in archive_windows.h if missing.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
cpio/cpio_windows.c

index 144814186a1f2e3fcf518a5d66a4bc3368d431b2..ce50b9bdeb269d11a786835c7af31fef93380767 100644 (file)
@@ -140,7 +140,7 @@ cpio_CreateFile(const char *path, DWORD dwDesiredAccess, DWORD dwShareMode,
        CREATEFILE2_EXTENDED_PARAMETERS createExParams;
 #endif
 
-#if !defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
        handle = CreateFileA(path, dwDesiredAccess, dwShareMode,
            lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes,
            hTemplateFile);