Commit d4018379 authored by Alexandre Julliard's avatar Alexandre Julliard

winecrt0: Build with msvcrt.

parent 6bce2b13
MODULE = libwinecrt0.a
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
debug.c \
delay_load.c \
......
......@@ -159,7 +159,7 @@ static const char * __cdecl fallback__wine_dbg_strdup( const char *str )
{
static char *list[32];
static int pos;
char *ret = _strdup( str );
char *ret = strdup( str );
int idx;
idx = InterlockedIncrement( &pos ) % ARRAY_SIZE(list);
......
......@@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _WIN32
#if 0
#pragma makedep unix
#endif
#include <stdarg.h>
#include "windef.h"
......@@ -63,5 +65,3 @@ static void free_delay_imports(void)
if (*descr->phmod) FreeLibrary( *descr->phmod );
}
#endif
#endif /* _WIN32 */
......@@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _WIN32
#if 0
#pragma makedep unix
#endif
#include <stdarg.h>
#include "windef.h"
......@@ -45,5 +47,3 @@ BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason,
return ret;
}
#endif /* _WIN32 */
......@@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _WIN32
#if 0
#pragma makedep unix
#endif
#include <stdarg.h>
#include "windef.h"
......@@ -37,5 +39,3 @@ NTSTATUS DECLSPEC_HIDDEN WINAPI __wine_spec_drv_entry( struct _DRIVER_OBJECT *ob
return DriverEntry( obj, path );
/* there is no detach routine so we can't call destructors */
}
#endif /* _WIN32 */
......@@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _WIN32
#if 0
#pragma makedep unix
#endif
#include <stdarg.h>
#include "windef.h"
......@@ -39,5 +41,3 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb )
if (needs_init) _fini();
ExitProcess( ret );
}
#endif /* _WIN32 */
......@@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _WIN32
#if 0
#pragma makedep unix
#endif
#include <stdarg.h>
#include "windef.h"
......@@ -50,5 +52,3 @@ int __cdecl main( int argc, char *argv[] )
if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWNORMAL;
return WinMain( GetModuleHandleA(0), 0, cmdline, info.wShowWindow );
}
#endif /* _WIN32 */
......@@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _WIN32
#if 0
#pragma makedep unix
#endif
#include <stdarg.h>
#include "windef.h"
......@@ -39,5 +41,3 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb )
if (needs_init) _fini();
ExitProcess( ret );
}
#endif /* _WIN32 */
......@@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _WIN32
#if 0
#pragma makedep unix
#endif
#include <stdarg.h>
#include "windef.h"
......@@ -52,5 +54,3 @@ int __cdecl wmain( int argc, WCHAR *argv[] )
if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWNORMAL;
return wWinMain( GetModuleHandleW(0), 0, cmdline, info.wShowWindow );
}
#endif /* _WIN32 */
......@@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _WIN32
#if 0
#pragma makedep unix
#endif
#include <stdarg.h>
#include "windef.h"
......@@ -42,5 +44,3 @@ void DECLSPEC_HIDDEN __wine_spec_init_ctor(void)
if (__wine_spec_init_state == NO_INIT_DONE) __wine_spec_init();
__wine_spec_init_state = CONSTRUCTORS_DONE;
}
#endif /* _WIN32 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment