On Sat, Sep 5, 2015 at 9:58 PM, Keith Medcalf <kmedcalf at dessus.com> wrote:

>
> Trunk does not compile with MinGW [gcc version 4.8.1 (GCC)] on Windows.
>
> sqlite3x.c: In function 'sqlite3MemoryBarrier':
> sqlite3x.c:20410:17: error: expected expression before ')' token
>    MemoryBarrier();
>
> /*
> ** Try to provide a memory barrier operation, needed for initialization
> only.
> */
> SQLITE_PRIVATE void sqlite3MemoryBarrier(void){
>   MemoryBarrier();
> }
>
> This references a definition in winnt.h
>
> #if _WIN32_WINNT >= _WIN32_WINNT_VISTA
> # if defined(_AMD64_) || defined(__X86_64)
> #  define MemoryBarrier __faststorefence
>
> # elif defined(_IA64_)
>
> #  define MemoryBarrier __mf
> # else
>
>    void __mingworg_MemoryBarrier(void);
> #  define MemoryBarrier __mingworg_MemoryBarrier
> # endif
>
> #else
>
> # define MemoryBarrier
> #endif
>
> If the _WIN32_WINNT value is less than Windows 6/Vista [0x600] then the
> error is generated.  If the version is 0x600 or greater, it compiles just
> fine.
>
> Of course, versions of WinNT less than 6 are "no longer diddled by
> Microsoft" (meaning they are stable development targets).
>

My Commodore 64 is a stable development target! Sweet!

Reply via email to