]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
imagex: make sure we still use wgetopt_long_only() on Windows
[wimlib] / programs / imagex.c
index 781718e32fe82217a60c308b6b9c796c03f174a6..e69d74fd91a6ab8879825cc19d3f08c752c1abd6 100644 (file)
 #  include <alloca.h>
 #endif
 
-/* NetBSD is missing getopt_long_only() but has getopt_long() */
-#ifndef HAVE_GETOPT_LONG_ONLY
-#  define getopt_long_only getopt_long
-#endif
-
 #define WIMLIB_COMPRESSION_TYPE_INVALID (-1)
 
 #ifdef __WIN32__
 static inline void set_fd_to_binary_mode(int fd)
 {
 }
+/* NetBSD is missing getopt_long_only() but has getopt_long() */
+#ifndef HAVE_GETOPT_LONG_ONLY
+#  define getopt_long_only getopt_long
+#endif
 #endif /* !__WIN32 */
 
 /* Don't confuse the user by presenting the mounting commands on Windows when