|Subject:||Re: [Tinycc-devel] Function pointers declared in a particular way result in a miscompilation|
|Date:||Tue, 1 Jan 2019 08:29:12 +0100|
Thanks Michael and Jonathan.
Unless I’m missing something in flag or config, sqlite does not compile ROOTB.
I add to include this dirty patch in sqlite3.c
#define CP_ACP 0
#define CP_UTF8 65001
#define CP_OEMCP 1
In fact, missing declarations are in standard winnls.h Windows header which does not exists in tcc distrib and is explicitly removed (by Grischka?) from windows.h
Line 70: //gr #include <winnls.h>
Which winnls.h have we the rights to include in standard tcc distrib?
We could take the one from MinGW but includes many others includes not present in tcc (should we take them all in tcc standard distrib?).
The ones from PellsC/Watcom/lcc are lighter but I’ve no ideas if we have the rights to do so.
A quick and dirty solution would be to include winnsl.h with only definitions required to compile sqlite and let other people complete this first version with other declaration.
From: Tinycc-devel [mailto:address@hidden On Behalf Of Jonathan Newman
Many thanks Michael! I can confirm SQLite now compiles correctly on win32.
On Mon, 31 Dec 2018 at 21:06, Michael Matz <address@hidden> wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|