|
From: | grischka |
Subject: | Re: [Tinycc-devel] stdcall DLL calling convention |
Date: | Sun, 09 Feb 2014 19:32:47 +0100 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
livespi wrote:
I'm trying to make a DLL for Windows w/ TinyCC (using -shared compiler option) and I'd like the functions to use stdcall convention instead of the default cdecl. The tcc-doc says I can do this w/ __attribute__, but doesn't elaborate. So if I have ---> #define DLL_EXPORT __declspec(dllexport) DLL_EXPORT BOOL func(HANDLE h, UCHAR c) { ... } <-- Can someone show me how to define this to use stdcall?
See win32/examples/dll.c for an example and win32/include/_mingw.h for more background info how __declspec works. --- grischka
[Prev in Thread] | Current Thread | [Next in Thread] |