Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary __stdcall defines #27

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion COREDLL/dllmain.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"

#undef __stdcall // DllMain should be __stdcall always
BOOL __stdcall DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
Expand Down
12 changes: 0 additions & 12 deletions COREDLL/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,6 @@ typedef struct tagWIN32_FIND_DATA_WCECL
#undef RasHangUp
#undef RasDial

// Windows CE uses __cdecl instead of __stdcall everywhere, including WINAPI macro
// (defined in wce/windef.h)
#ifdef __stdcall
#undef __stdcall
#endif
#define __stdcall __cdecl

#ifdef _stdcall
#undef _stdcall
#endif
#define _stdcall _cdecl

#ifdef WINAPI
#undef WINAPI
#endif
Expand Down