*
*/
-#include <crtdll/stdio.h>
-#include <crtdll/io.h>
-#include <crtdll/process.h>
+#include <msvcrt/stdio.h>
+#include <msvcrt/io.h>
+#include <msvcrt/process.h>
#include <windows.h>
+
/* See note in crt0.c */
#include "init.c"
extern BOOL WINAPI DllMain(HANDLE, DWORD, LPVOID);
BOOL WINAPI
-DllMainCRTStartup (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
+DllMainCRTStartup(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
{
BOOL bRet;
- if (dwReason == DLL_PROCESS_ATTACH)
- {
+ if (dwReason == DLL_PROCESS_ATTACH) {
_mingw32_init_mainargs();
#ifdef __GNUC__
bRet = DllMain(hDll, dwReason, lpReserved);
#ifdef __GNUC__
- if (dwReason == DLL_PROCESS_DETACH)
- {
+ if (dwReason == DLL_PROCESS_DETACH) {
/* From libgcc.a, calls global class destructors. */
__do_global_dtors();
}
* Thanks to Andrey A. Smirnov for pointing this one out.
*/
int
-atexit (void (*pfn)())
+atexit(void (*pfn)())
{
return 0;
}