Moved the include guards around the typedefs in ui.h.

This commit is contained in:
Pietro Gagliardi 2015-05-03 13:50:41 -04:00
parent 5ac0e7aa32
commit 4e1a99c868
2 changed files with 1 additions and 8 deletions

View File

@ -45,7 +45,7 @@ $(OBJDIR)/%.o: %.m $(xHFILES) | $$(dir $$@).phony
.PRECIOUS: %/.phony
ui.h: ui.idl
idl2h -extern _UI_EXTERN < ui.idl > ui.h
idl2h -extern _UI_EXTERN -guard __UI_UI_H__ < ui.idl > ui.h
clean:
rm -rf $(OUTDIR) $(OBJDIR) ui.h

7
ui.idl
View File

@ -6,11 +6,6 @@
package ui {
// TODO autogenerate this somehow
// TODO alternatively, move AFTER typedefs
raw "#ifndef __UI_UI_H__";
raw "#define __UI_UI_H__";
raw "#include <stdint.h>";
raw "#ifndef _UI_EXTERN";
@ -133,6 +128,4 @@ interface MenuItem {
func SetChecked(checked int);
};
raw "#endif";
};