Index: third_party/minicrt/dllcrt0.cc |
diff --git a/third_party/minicrt/dllcrt0.cc b/third_party/minicrt/dllcrt0.cc |
deleted file mode 100644 |
index 6c5f14064875eeee0007d66f9ab429fe1114ee61..0000000000000000000000000000000000000000 |
--- a/third_party/minicrt/dllcrt0.cc |
+++ /dev/null |
@@ -1,57 +0,0 @@ |
-//========================================== |
-// LIBCTINY - Matt Pietrek 2001 |
-// MSDN Magazine, January 2001 |
-// FILE: DLLCRT0.CPP |
-//========================================== |
-#include "libctiny.h" |
-#include <windows.h> |
-#include "initterm.h" |
- |
-// Force the linker to include KERNEL32.LIB |
-#pragma comment(linker, "/defaultlib:kernel32.lib") |
- |
-// #pragma comment(linker, "/nodefaultlib:libc.lib") |
-// #pragma comment(linker, "/nodefaultlib:libcmt.lib") |
- |
-// User routine DllMain is called on all notifications |
- |
-extern BOOL WINAPI DllMain( |
- HANDLE hDllHandle, |
- DWORD dwReason, |
- LPVOID lpreserved |
- ) ; |
- |
-extern "C" void DoInitialization(); |
-extern "C" void DoCleanup(); |
- |
-// |
-// Modified version of the Visual C++ startup code. Simplified to |
-// make it easier to read. Only supports ANSI programs. |
-// |
-extern "C" |
-BOOL WINAPI _DllMainCRTStartup( |
- HANDLE hDllHandle, |
- DWORD dwReason, |
- LPVOID lpreserved |
- ) { |
- if (dwReason == DLL_PROCESS_ATTACH) |
- { |
- // set up our minimal cheezy atexit table |
- _atexit_init(); |
- |
- // Call C++ constructors |
- _initterm( __xc_a, __xc_z ); |
- |
- // DoInitialization(); |
- } |
- |
- BOOL retcode = DllMain(hDllHandle, dwReason, lpreserved); |
- |
- if (dwReason == DLL_PROCESS_DETACH) |
- { |
- _DoExit(); |
- // DoCleanup(); |
- } |
- |
- return retcode ; |
-} |