make firm compilable with a c++ compiler
[libfirm] / ir / be / bemodule.h
index ce9d70a..db84248 100644 (file)
  * Currently you have to add modules manually in the list in bemodule.c.
  * However future extensions might allow them to be automatically discovered
  * when they are marked with BE_REGISTER_MODULE_CONSTRUCTOR
+ *
+ * Add this before your constructor as it will declare the function
  */
-#define BE_REGISTER_MODULE_CONSTRUCTOR(func)
+#define BE_REGISTER_MODULE_CONSTRUCTOR(func)         void func(void);
 
 /**
  * Mark a function as module destructor.
+ *
+ * Add this before your constructor as it will declare the function
  */
-#define BE_REGISTER_MODULE_DESTRUCTOR(func)
+#define BE_REGISTER_MODULE_DESTRUCTOR(func)          void func(void);
 
 /**
  * Call all module constructors
@@ -52,7 +56,7 @@ void be_quit_modules(void);
 
 //---------------------------------------------------------------------------
 
-#include <libcore/lc_opts.h>
+#include "lc_opts.h"
 
 typedef struct be_module_list_entry_t be_module_list_entry_t;