Commits

Anonymous committed 9287724

Protect against double inclusion.

  • Participants
  • Parent commits 4d1fd0c

Comments (0)

Files changed (3)

File mirage-features.h

  * released under 3-clause BSD license
  */
 
+#ifndef _MIRAGE_FEATURES_H
+#define _MIRAGE_FEATURES_H 1
+
 #ifdef USE_CONFIG
 #	include "mirage-config.h"
 #else
 #ifdef NO_GNU
 #	define NO_GETOPT_LONG
 #endif
+
+#endif

File mirage-getopt.h

  * released under 3-clause BSD license
  */
 
+#ifndef _MIRAGE_GETOPT_H
+#define _MIRAGE_GETOPT_H 1
+
 enum mirage_optarg {
 	mirage_arg_none,
 	mirage_arg_int,
 
 const short int mirage_getopt(const int argc, char* const argv[], const struct mirage_opt* const opts, union mirage_optarg_val *outval, const char* newargv[]);
 void mirage_getopt_help(const char* const argv0, const char* const synopsis, const struct mirage_opt* const opts);
+
+#endif

File mirage-wrapper.h

  * released under 3-clause BSD license
  */
 
+#ifndef _MIRAGE_WRAPPER_H
+#define _MIRAGE_WRAPPER_H 1
+
 #include <stdbool.h>
 
 const bool miragewrap_init(void);
 const size_t miragewrap_get_track_size(const int track_num);
 const bool miragewrap_output_track(void *out, const int track_num, const bool use_mmap);
 void miragewrap_free(void);
+
+#endif