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 9275c35..01bc1a5 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.  */