]> wimlib.net Git - wimlib/commitdiff
extract.c: don't use ifdef within macro argument
authorEric Biggers <ebiggers3@gmail.com>
Thu, 17 Nov 2016 05:32:10 +0000 (21:32 -0800)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 17 Nov 2016 05:48:55 +0000 (21:48 -0800)
This was nonstandard and 'sparse' complained about it.

src/extract.c

index 9275c352b427dac58600ff0474e9c577d3b6ae14..01bc1a5bebca03ff52769104f8f0bd76c193372d 100644 (file)
@@ -1754,13 +1754,11 @@ extract_single_image(WIMStruct *wim, int image,
 }
 
 static const tchar * const filename_forbidden_chars =
-T(
 #ifdef __WIN32__
-"<>:\"/\\|?*"
+T("<>:\"/\\|?*");
 #else
-"/"
+T("/");
 #endif
-);
 
 /* This function checks if it is okay to use a WIM image's name as a directory
  * name.  */