winecrt0: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-06-17 19:18:01 +02:00
parent 6bce2b1365
commit d401837994
10 changed files with 27 additions and 25 deletions

View File

@ -1,5 +1,7 @@
MODULE = libwinecrt0.a MODULE = libwinecrt0.a
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \ C_SRCS = \
debug.c \ debug.c \
delay_load.c \ delay_load.c \

View File

@ -159,7 +159,7 @@ static const char * __cdecl fallback__wine_dbg_strdup( const char *str )
{ {
static char *list[32]; static char *list[32];
static int pos; static int pos;
char *ret = _strdup( str ); char *ret = strdup( str );
int idx; int idx;
idx = InterlockedIncrement( &pos ) % ARRAY_SIZE(list); idx = InterlockedIncrement( &pos ) % ARRAY_SIZE(list);

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef _WIN32 #if 0
#pragma makedep unix
#endif
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
@ -63,5 +65,3 @@ static void free_delay_imports(void)
if (*descr->phmod) FreeLibrary( *descr->phmod ); if (*descr->phmod) FreeLibrary( *descr->phmod );
} }
#endif #endif
#endif /* _WIN32 */

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef _WIN32 #if 0
#pragma makedep unix
#endif
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
@ -45,5 +47,3 @@ BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason,
return ret; return ret;
} }
#endif /* _WIN32 */

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef _WIN32 #if 0
#pragma makedep unix
#endif
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
@ -37,5 +39,3 @@ NTSTATUS DECLSPEC_HIDDEN WINAPI __wine_spec_drv_entry( struct _DRIVER_OBJECT *ob
return DriverEntry( obj, path ); return DriverEntry( obj, path );
/* there is no detach routine so we can't call destructors */ /* there is no detach routine so we can't call destructors */
} }
#endif /* _WIN32 */

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef _WIN32 #if 0
#pragma makedep unix
#endif
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
@ -39,5 +41,3 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb )
if (needs_init) _fini(); if (needs_init) _fini();
ExitProcess( ret ); ExitProcess( ret );
} }
#endif /* _WIN32 */

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef _WIN32 #if 0
#pragma makedep unix
#endif
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
@ -50,5 +52,3 @@ int __cdecl main( int argc, char *argv[] )
if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWNORMAL; if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWNORMAL;
return WinMain( GetModuleHandleA(0), 0, cmdline, info.wShowWindow ); return WinMain( GetModuleHandleA(0), 0, cmdline, info.wShowWindow );
} }
#endif /* _WIN32 */

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef _WIN32 #if 0
#pragma makedep unix
#endif
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
@ -39,5 +41,3 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb )
if (needs_init) _fini(); if (needs_init) _fini();
ExitProcess( ret ); ExitProcess( ret );
} }
#endif /* _WIN32 */

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef _WIN32 #if 0
#pragma makedep unix
#endif
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
@ -52,5 +54,3 @@ int __cdecl wmain( int argc, WCHAR *argv[] )
if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWNORMAL; if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWNORMAL;
return wWinMain( GetModuleHandleW(0), 0, cmdline, info.wShowWindow ); return wWinMain( GetModuleHandleW(0), 0, cmdline, info.wShowWindow );
} }
#endif /* _WIN32 */

View File

@ -18,7 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef _WIN32 #if 0
#pragma makedep unix
#endif
#include <stdarg.h> #include <stdarg.h>
#include "windef.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(); if (__wine_spec_init_state == NO_INIT_DONE) __wine_spec_init();
__wine_spec_init_state = CONSTRUCTORS_DONE; __wine_spec_init_state = CONSTRUCTORS_DONE;
} }
#endif /* _WIN32 */