branch update for HEAD-2003021201
[reactos.git] / lib / crtdll / misc / dllcrt1.c
index a609c0f..bfc9402 100644 (file)
  * 
  */
 
-#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"
 
@@ -46,12 +47,11 @@ extern void __do_global_dtors();
 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__
@@ -68,8 +68,7 @@ DllMainCRTStartup (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
        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();
        }
@@ -87,7 +86,7 @@ DllMainCRTStartup (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
  *       Thanks to Andrey A. Smirnov for pointing this one out.
  */
 int
-atexit (void (*pfn)())
+atexit(void (*pfn)())
 {
        return 0;
 }