mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
b8bd9d1b01
Move all the source files used in utils/mingw/ into that subdirectory, so the built objects are in the expected place. (path.cc requires some more unpicking, and even then there is genuinely some shared code, so use a trivial file which includes the real path.cc so the object file is generated where expected)
18 lines
386 B
C++
18 lines
386 B
C++
#include <windows.h>
|
|
int APIENTRY
|
|
WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
|
|
{
|
|
LPWSTR cmd = GetCommandLineW ();
|
|
while (*cmd)
|
|
if (*cmd != ' ' || cmd[1] != L'-' || cmd[2] != '-' || cmd[3] != ' ')
|
|
cmd++;
|
|
else
|
|
{
|
|
cmd += 4;
|
|
break;
|
|
}
|
|
if (!*cmd || !LoadLibraryExW (cmd, NULL, LOAD_WITH_ALTERED_SEARCH_PATH ))
|
|
ExitProcess (0x0100);
|
|
ExitProcess (0x0000);
|
|
}
|