我可以用 __attribute__ 字符串避免 g++ 环绕 _stdcall 吗?
Can I avoid g++ surround _stdcall with __attribute__ string
我使用 MinGW 的 g++ 预处理我的文件,它具有以下功能:
[call_as(ReadAt)]
HRESULT _stdcall RemoteReadAt(
[in] ULARGE_INTEGER ulOffset,
[out, size_is(cb), length_is(*pcbRead)]
byte *pv,
[in] ULONG cb,
[out] ULONG *pcbRead);
预处理输出为:
[call_as(ReadAt)]
HRESULT __attribute__((__stdcall__)) RemoteReadAt(
[in] ULARGE_INTEGER ulOffset,
[out, size_is(cb), length_is(*pcbRead)]
byte *pv,
[in] ULONG cb,
[out] ULONG *pcbRead);
是否有 g++ 选项可以避免更改输出中的第二行?请假设我无法访问该文件,因此我正在寻找 g++ 选项。
我能够使用 g++ 选项:-D_stdcall=_stdcall
我使用 MinGW 的 g++ 预处理我的文件,它具有以下功能:
[call_as(ReadAt)]
HRESULT _stdcall RemoteReadAt(
[in] ULARGE_INTEGER ulOffset,
[out, size_is(cb), length_is(*pcbRead)]
byte *pv,
[in] ULONG cb,
[out] ULONG *pcbRead);
预处理输出为:
[call_as(ReadAt)]
HRESULT __attribute__((__stdcall__)) RemoteReadAt(
[in] ULARGE_INTEGER ulOffset,
[out, size_is(cb), length_is(*pcbRead)]
byte *pv,
[in] ULONG cb,
[out] ULONG *pcbRead);
是否有 g++ 选项可以避免更改输出中的第二行?请假设我无法访问该文件,因此我正在寻找 g++ 选项。
我能够使用 g++ 选项:-D_stdcall=_stdcall