c - Porting "WINAPI" datatype from Windows to Linux -
i'm converting windows networking source code in c linux. in progress, see line, , don't know how convert :
dword winapi functiona(lpvoid lpparam) { }
i meet error when compile : expected initializer before "functiona"
i have add line of code :
typedef unsigned long dword;
about winapi. don't pretty sure how change this. have change in 2 case:
#define winapi cdecl #define winapi __stdcall
but still meet above problem. how can fix ? :)
winapi not datatype calling convention. linux can drop winapi alltogether or put in appropriate header file:
#define winapi
Comments
Post a Comment