Code: Select all
#include <proto/intuition.h>
#include <intuition/intuition.h>
Code: Select all
#include <hollywood/plugin.h>
I get this error from gcc (no matter if gcc 2.9 or gcc 5) :
Code: Select all
Work:Hollywood/SDK/examples/library> make -f makefile.mos testplugin
gcc -o build/mos/amigaentry.o -c -DHW_AMIGA -DHW_MORPHOS -O2 -Wall -Wno-pointer-sign -noixemul -I../../include src/amigaentry.c
In file included from src/amigaentry.c:15:0:
../../include/hollywood/plugin.h:2035:59: error: macro "SetPointer" requires 6 arguments, but only 3 given
HW_EXPORT void SetPointer(APTR handle, int type, APTR data);
^
../../include/hollywood/plugin.h:2035:16: error: 'SetPointer' redeclared as different kind of symbol
HW_EXPORT void SetPointer(APTR handle, int type, APTR data);
^
In file included from /gg/os-include/proto/intuition.h:14:0,
from src/amigaentry.c:10:
/gg/os-include/clib/intuition_protos.h:71:6: note: previous declaration of 'SetPointer' was here
VOID SetPointer( struct Window *window, UWORD *pointer, LONG height, LONG width, LONG xOffset, LONG yOffset );
^
make: *** [build/mos/amigaentry.o] Error 1
Work:Hollywood/SDK/examples/library>
Code: Select all
HW_EXPORT void SetPointer(APTR handle, int type, APTR data);