[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] stdcall DLL calling convention
From: |
livespi |
Subject: |
[Tinycc-devel] stdcall DLL calling convention |
Date: |
Sun, 9 Feb 2014 08:41:10 -0800 |
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?
*** WinXP using Popcorn email client
- [Tinycc-devel] stdcall DLL calling convention,
livespi <=