]> wimlib.net Git - wimlib/commitdiff
imagex: make sure we still use wgetopt_long_only() on Windows
authorEric Biggers <ebiggers3@gmail.com>
Sat, 21 Jul 2018 16:27:22 +0000 (09:27 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 21 Jul 2018 16:28:44 +0000 (09:28 -0700)
programs/imagex.c

index 781718e32fe82217a60c308b6b9c796c03f174a6..e69d74fd91a6ab8879825cc19d3f08c752c1abd6 100644 (file)
 #  include <alloca.h>
 #endif
 
 #  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__
 #define WIMLIB_COMPRESSION_TYPE_INVALID (-1)
 
 #ifdef __WIN32__
 static inline void set_fd_to_binary_mode(int fd)
 {
 }
 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
 #endif /* !__WIN32 */
 
 /* Don't confuse the user by presenting the mounting commands on Windows when