Commits

Anonymous committed 6b25a1b

Support mirage-config.h directly in mirage-features.h.

Comments (0)

Files changed (3)

-/* mirage2iso; support of NO_* defines and setting _*_SOURCE
+/* mirage2iso; support of NO_* defines and configure results
  * (c) 2009 Michał Górny
  * released under 3-clause BSD license
  */
 
+#ifdef USE_CONFIG
+#	include "mirage-config.h"
+#else
+#	warning "You should consider calling 'make configure' first"
+#endif
+
 #ifdef NO_POSIX
 #	define NO_MMAPIO
 #	define NO_BSD
  * released under 3-clause BSD license
  */
 
-#ifdef USE_CONFIG
-#	include "mirage-config.h"
-#else
-#	include "mirage-features.h"
-#endif
-
+#include "mirage-features.h"
 #include "mirage-getopt.h"
 
 #ifndef NO_GETOPT_LONG
  * released under 3-clause BSD license
  */
 
-#ifdef USE_CONFIG
-#	include "mirage-config.h"
-#else
-#	include "mirage-features.h"
-#endif
+#include "mirage-features.h"
 
 #ifndef NO_MMAPIO
 #	define _POSIX_C_SOURCE 200112L