win32: fix libtcc support
commit13b997668e32a4b451783fd80525cf221149c5b3
authorgrischka <grischka>
Tue, 10 Sep 2013 13:36:56 +0000 (10 15:36 +0200)
committergrischka <grischka>
Tue, 10 Sep 2013 13:36:56 +0000 (10 15:36 +0200)
treedd00f33b50483aad1cfa2c1ffdae3aab89e2572a
parent235a65033f287a6207079875bf7f8bffb458daa1
win32: fix libtcc support

For "tcc -run file.c", I was trying to initialize the FP control
in a function in libtcc1.a (_runmain) before calling main.

Unfortunately that turned out to cause problems with for example
libtcc_test since such usage doesn't necessarily define a 'main'
function.

So for tcc -run we're back to relying on the FP control word
that is set in the startup code of tcc.exe rsp. libtcc.dll.

This fixes part of commit 73faaea227a53e365dd75f1dba7a5071c7b5e541
tccpe.c
win32/lib/crt1.c