Hi,

I think I might have found a bug. When trying to compile SQLite (I used http://www.sqlite.org/sqlite-source-3_3_5.zip) on windows, I ran into an error. I used this command:

..\tcc\tcc.exe -I..\include -I..\include\winapi -L..\lib -o sqlite.exe *.c -lkernel32

When I do that, I get an error regarding this piece of code in winnt.h:

typedef PVOID PACCESS_TOKEN;
typedef struct _SE_IMPERSONATION_STATE {
    PACCESS_TOKEN Token;
    BOOLEAN CopyOnOpen;
    BOOLEAN EffectiveOnly;
    SECURITY_IMPERSONATION_LEVEL Level;
} SE_IMPERSONATION_STATE,*PSE_IMPERSONATION_STATE;

esp. regarding PACCESS_TOKEN Token; :

In file included from ..\include\winapi/windows.h:105:
In file included from ..\include\winapi/windef.h:155:
..\include\winapi/winnt.h:1808: identifier expected

When I replace PACCESS_TOKEN Token; with void PACCESS_TOKEN Token;, everything compiles just fine.

I don't know if this is a bug in winnt.h, SQLite or the compiler, I just thought I'd let you know.

Hope this help!

Cheers,

Laurens Simonis


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to