Using gcc version 4.1.2, targeting Linux, could not figure out how to specify stdcall.
Found lots of seemingly related answers that all say to use the following:
typedef void (__stdcall *int)(int);
This is not working though.
Using gcc version 4.1.2, targeting Linux, could not figure out how to specify stdcall.
Found lots of seemingly related answers that all say to use the following:
typedef void (__stdcall *int)(int);
This is not working though.
After much searching, I finally found the right answer incidentally to this stack overflow question: Is there any equivalent for stdcall in GCC?
The bottom line is to do the following (using #define to accomplish this is optional of course)
#define STDCALL __attribute__((stdcall))
typedef void (STDCALL *int)(int);