diff --git a/gtk/Makefile b/gtk/Makefile index 19c9c45..f1fd566 100644 --- a/gtk/Makefile +++ b/gtk/Makefile @@ -1,12 +1,12 @@ PREFIX ?= /usr/local all: - @objfw-compile -Wall -g --lib 0.0 -o objgui -I../headers \ + @objfw-compile -DOG_GTK -Wall -g --lib 0.0 -o objgui -I../headers \ `pkg-config --cflags --libs gtk+-3.0` \ `ls *.m | fgrep -v test.m` test: - @objfw-compile -Wall -g -o test -I../headers \ + @objfw-compile -DOG_GTK -Wall -g -o test -I../headers \ `pkg-config --cflags --libs gtk+-3.0` \ *.m diff --git a/headers/OGApplication.h b/headers/OGApplication.h index c684343..00ee0d3 100644 --- a/headers/OGApplication.h +++ b/headers/OGApplication.h @@ -1,5 +1,3 @@ -#include - #import @protocol OGApplicationDelegate diff --git a/headers/OGWidget.h b/headers/OGWidget.h index 0416bd0..bcf37e3 100644 --- a/headers/OGWidget.h +++ b/headers/OGWidget.h @@ -20,14 +20,18 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include +#ifdef OG_GTK +# include +#endif #import @interface OGWidget: OFObject { @public +#ifdef OG_GTK GtkWidget *widget; +#endif } - (void)show;