prog.c:11:16: warning: return type defaults to ‘int’ [-Wreturn-type]
#define __PORT __declspec(dllimport) // use dll mode
^
prog.c:18:1: note: in expansion of macro ‘__PORT’
__PORT BOOL APIENTRY DllMain(HINSTANCE, WORD, LPVOID);
^
prog.c: In function ‘__declspec’:
prog.c:18:8: error: unknown type name ‘BOOL’
__PORT BOOL APIENTRY DllMain(HINSTANCE, WORD, LPVOID);
^
prog.c:18:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DllMain’
__PORT BOOL APIENTRY DllMain(HINSTANCE, WORD, LPVOID);
^
prog.c:11:16: error: expected declaration specifiers before ‘__declspec’
#define __PORT __declspec(dllimport) // use dll mode
^
prog.c:19:1: note: in expansion of macro ‘__PORT’
__PORT int WINAPI test(int);
^
prog.c:11:16: error: expected ‘{’ at end of input
#define __PORT __declspec(dllimport) // use dll mode
^
prog.c:19:1: note: in expansion of macro ‘__PORT’
__PORT int WINAPI test(int);
^
prog.c:11:16: warning: control reaches end of non-void function [-Wreturn-type]
#define __PORT __declspec(dllimport) // use dll mode
^
prog.c:19:1: note: in expansion of macro ‘__PORT’
__PORT int WINAPI test(int);
^