tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Bug? At least error when compiling SQLite


From: Laurens Simonis
Subject: [Tinycc-devel] Bug? At least error when compiling SQLite
Date: Wed, 17 May 2006 09:06:45 +0200
User-agent: Thunderbird 1.5.0.2 (Windows/20060308)

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




reply via email to

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