Skip to content

Commit

Permalink
Remove unnecessary __stdcall defines
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNNX authored and dz333n committed Apr 13, 2024
1 parent 40fa0b8 commit b38c634
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
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

0 comments on commit b38c634

Please sign in to comment.