diff --git a/example_plugin/Makefile b/example_plugin/Makefile index 55c04b4..2ce2e3c 100644 --- a/example_plugin/Makefile +++ b/example_plugin/Makefile @@ -88,7 +88,7 @@ LD1FLAGS += --relocatable -s \ # -memb: enable embedded application specific compilation # -ffunction-sections: split up functions so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect -CFLAGS += -O0 -Wall -x c -std=gnu11 \ +CFLAGS += -O0 -Wall -x c -std=gnu99 \ -nostdinc -ffreestanding \ -DGEKKO_U -D__wiiu__ \ -mrvl -mcpu=750 -meabi -mhard-float -fshort-wchar -fno-common \ diff --git a/example_plugin/main.c b/example_plugin/main.c index 24e36dc..01ccf6b 100644 --- a/example_plugin/main.c +++ b/example_plugin/main.c @@ -13,13 +13,13 @@ static int value = 15; static int my_func(void) { - int res = func(); + int res = 17; return 4 * value * res; } static int my_func2(void) { - int res = func(); + int res = 15; return 4 * value * res; }