}
VOID
+__cdecl
wmainCRTStartup (
VOID
)
}
NTSTATUS
+__cdecl
_main(IN INT argc,
IN PCHAR argv[],
IN PCHAR envp[],
LRESULT CALLBACK CaptureDialogProc(HWND, UINT, WPARAM, LPARAM);
VOID EnableFileMenuItemByID(UINT Id, BOOL Enable);
VOID CheckLocalEchoMenuItem(BOOL Checked);
-VOID Rs232Thread(VOID* Parameter);
+VOID __cdecl Rs232Thread(VOID* Parameter);
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
CheckMenuItem(hFileMenu, IDM_FILE_LOCALECHO, MF_BYCOMMAND|(Checked ? MF_CHECKED : MF_UNCHECKED));
}
-VOID Rs232Thread(VOID* Parameter)
+VOID __cdecl Rs232Thread(VOID* Parameter)
{
BYTE Byte;
TCHAR String[MAX_PATH];
_CRTIMP
wchar_t*
+ __cdecl
wcsncat(
wchar_t *_Dest,
const wchar_t *_Source,
#ifdef _USE_32BIT_TIME_T
/* Do it like this to be compatible to msvcrt.dll on 32 bit windows XP and before */
__CRT_INLINE wchar_t *__cdecl _wctime32(const time_t *_Time) { return _wctime(_Time); }
-__CRT_INLINE errno_t _wctime32_s(wchar_t *_Buffer, size_t _SizeInWords,const __time32_t *_Time) { return _wctime32_s(_Buffer, _SizeInWords, _Time); }
+__CRT_INLINE errno_t __cdecl _wctime32_s(wchar_t *_Buffer, size_t _SizeInWords,const __time32_t *_Time) { return _wctime32_s(_Buffer, _SizeInWords, _Time); }
#else
__CRT_INLINE wchar_t *__cdecl _wctime(const time_t *_Time) { return _wctime64(_Time); }
-__CRT_INLINE errno_t _wctime_s(wchar_t *_Buffer, size_t _SizeInWords,const time_t *_Time) { return _wctime64_s(_Buffer, _SizeInWords, _Time); }
+__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer, size_t _SizeInWords,const time_t *_Time) { return _wctime64_s(_Buffer, _SizeInWords, _Time); }
#endif
#endif
_In_ DWORD cjPrinterData);
#endif /* !USERMODE_DRIVER */
-typedef int (CDECL *SORTCOMP)(const void *pv1, const void *pv2);
+typedef int (__cdecl /*CDECL*/ *SORTCOMP)(const void *pv1, const void *pv2);
ENGAPI
VOID
#ifndef FT_EXPORT
#ifdef __cplusplus
-#define FT_EXPORT( x ) extern "C" x
+#define FT_EXPORT( x ) extern "C" x __cdecl
#else
-#define FT_EXPORT( x ) extern x
+#define FT_EXPORT( x ) extern x __cdecl
#endif
#endif /* !FT_EXPORT */
#ifndef FT_EXPORT_DEF
#ifdef __cplusplus
-#define FT_EXPORT_DEF( x ) extern "C" x
+#define FT_EXPORT_DEF( x ) extern "C" x __cdecl
#else
-#define FT_EXPORT_DEF( x ) extern x
+#define FT_EXPORT_DEF( x ) extern x __cdecl
#endif
#endif /* !FT_EXPORT_DEF */
#ifdef __REACTOS__
#include "malloc.h"
struct _exception;
-__declspec(dllimport) void __setusermatherr(int (__cdecl *)(struct _exception *));
+__declspec(dllimport) void __cdecl __setusermatherr(int (__cdecl *)(struct _exception *));
#define __mingw_fprintf fprintf
#define __mingw_vfprintf vfprintf
#endif
_PVFV *__onexitbegin;
_PVFV *__onexitend;
-extern _CRTIMP _onexit_t __dllonexit (_onexit_t, _PVFV**, _PVFV**);
+extern _CRTIMP _onexit_t __cdecl __dllonexit (_onexit_t, _PVFV**, _PVFV**);
extern _onexit_t (__cdecl * __MINGW_IMP_SYMBOL(_onexit)) (_onexit_t func);
/* Choose a different name to prevent name conflicts. The CRT one works fine. */
#include <sect_attribs.h>
#include <internal.h>
-__declspec(dllimport) int __lconv_init (void);
+__declspec(dllimport) int __cdecl __lconv_init (void);
int mingw_initcharmax = 0;
int _charmax = 255;
-static int my_lconv_init(void)
+static int __cdecl my_lconv_init(void)
{
return __lconv_init();
}
extern LPWSTR __mingw_winmain_lpCmdLine;
extern DWORD __mingw_winmain_nShowCmd;
-int wmain (int, wchar_t **, wchar_t **);
+int __cdecl wmain (int, wchar_t **, wchar_t **);
/*ARGSUSED*/
-int wmain (int __UNUSED_PARAM(flags),
+int __cdecl wmain (int __UNUSED_PARAM(flags),
wchar_t ** __UNUSED_PARAM(cmdline),
wchar_t ** __UNUSED_PARAM(inst))
{
PBYTE _GetPEImageBase (void);
int __mingw_init_ehandler (void);
-extern void _fpreset (void);
+extern void __cdecl _fpreset (void);
#if defined(_WIN64) && !defined(_MSC_VER)
EXCEPTION_DISPOSITION __mingw_SEH_error_handler(struct _EXCEPTION_RECORD *, void *, struct _CONTEXT *, void *);
return 1;
}
-extern void _fpreset (void);
+extern void __cdecl _fpreset (void);
EXCEPTION_DISPOSITION
__mingw_SEH_error_handler (struct _EXCEPTION_RECORD* ExceptionRecord,
extern WINBOOL WINAPI DllEntryPoint (HANDLE, DWORD, LPVOID);
-static int pre_c_init (void);
+static int __cdecl pre_c_init (void);
_CRTALLOC(".CRT$XIAA") _PIFV pcinit = pre_c_init;
static int
+__cdecl
pre_c_init (void)
{
_PVFV *onexitbegin;
/* This symbol is defined by ld. */
extern IMAGE_DOS_HEADER __ImageBase;
-extern void _fpreset (void);
+extern void __cdecl _fpreset (void);
#define SPACECHAR _T(' ')
#define DQUOTECHAR _T('\"')
#endif
}
-static int __tmainCRTStartup (void);
+static int __cdecl __tmainCRTStartup (void);
-int WinMainCRTStartup (void);
+int __cdecl WinMainCRTStartup (void);
-int WinMainCRTStartup (void)
+int __cdecl WinMainCRTStartup (void)
{
int ret = 255;
#ifdef __SEH__
return ret;
}
-int mainCRTStartup (void);
+int __cdecl mainCRTStartup (void);
#ifdef _WIN64
int __mingw_init_ehandler (void);
#endif
-int mainCRTStartup (void)
+int __cdecl mainCRTStartup (void)
{
int ret = 255;
#ifdef __SEH__
}
static
-__declspec(noinline) int
+__declspec(noinline)
+int __cdecl
__tmainCRTStartup (void)
{
_TCHAR *lpszCommandLine = NULL;
#else
#define __UNUSED_PARAM_1 __UNUSED_PARAM
#endif
-static void
+static void __cdecl
__mingw_invalidParameterHandler (const wchar_t * __UNUSED_PARAM_1(expression),
const wchar_t * __UNUSED_PARAM_1(function),
const wchar_t * __UNUSED_PARAM_1(file),
#pragma function(_tcslen)
#endif /* _MSC_VER */
-size_t _tcslen(const _TCHAR * str)
+size_t __cdecl _tcslen(const _TCHAR * str)
{
const _TCHAR * s;
#include <stddef.h>
#include <tchar.h>
-size_t _tcsnlen(const _TCHAR * str, size_t count)
+size_t __cdecl _tcsnlen(const _TCHAR * str, size_t count)
{
const _TCHAR * s;
}
void
+__cdecl
_assert (
const char *exp,
const char *file,
return(STATUS_VARIABLE_NOT_FOUND);
}
-static int
+static int __cdecl
DbgCompareChannels(const void * a, const void * b)
{
return wcscmp((WCHAR*)a, ((DBG_CHANNEL*)b)->Name);
#include <math.h>
#include <intrin.h>
+// Needed because windef.h messes up CDECL for whatever
+#undef CDECL
+#define CDECL __cdecl
+
/* Avoid type casting, by defining RECT to RECTL */
#define RECT RECTL
#define PRECT PRECTL