[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Win: Add Unicode support for _tmain and _tWinMain

From: YX Hao
Subject: Re: [Tinycc-devel] Win: Add Unicode support for _tmain and _tWinMain
Date: Tue, 12 Aug 2014 21:44:31 +0800

From: "grischka" <address@hidden>
Alexander De Sousa wrote:
Some thoughts on the matter:
- Separated startup code for Unicode entry points seem to be a must, I couldn't find any way of doing it using the current crt1 and wincrt1.

I'd agree with separate code, but not with separate sources. Rather
it should work like this:

    tcc -c crt1.c -o crt1.o
    tcc -c crt1.c -D_UNICODE -o wcrt1.o
    ar rcs libtcc1.a crt1.o wcrt1.o ...

After all that's the point of the _T/_t macros defined in tchar.h
and all the redirections in windows.h that depend on UNICODE.

That is what MS VC's CRT source file do (VC98).

-- gr

reply via email to

[Prev in Thread] Current Thread [Next in Thread]