I think the purpose of
#define NOUSER
is to use it before
#include <windows.h>
to speed compiles when you know that you won't be calling any functions in
winuser.h
This feature appears to be broken in the 20080608 snapshot (I'm using
mingw-w64-bin_i686-cygwin-1.5.25-14_20080608)
This code demonstrates the problem:
#define NOUSER
#include <windows.h>
int main()
{
}
When compiled this way:
x86_64-pc-mingw32-gcc -o test nouser.c
It produces these errors (excerpt):
In file included from
/cygdrive/g/downloads/mingw-w64-bin_i686-cygwin-1.5.25-14_20080608/bin/../lib/gcc/x86_64-pc-mingw32/4.4.0/../../../../x86_64-pc-mingw32/include/windows.h:65,
from nouser.c:2:
/cygdrive/g/downloads/mingw-w64-bin_i686-cygwin-1.5.25-14_20080608/bin/../lib/gcc/x86_64-pc-mingw32/4.4.0/../../../../x86_64-pc-mingw32/include/winuser.h:728:
error: expected declaration specifiers or '...' before 'DESKTOPENUMPROCA'
/cygdrive/g/downloads/mingw-w64-bin_i686-cygwin-1.5.25-14_20080608/bin/../lib/gcc/x86_64-pc-mingw32/4.4.0/../../../../x86_64-pc-mingw32/include/winuser.h:729:
error: expected declaration specifiers or '...' before 'DESKTOPENUMPROCW'
/cygdrive/g/downloads/mingw-w64-bin_i686-cygwin-1.5.25-14_20080608/bin/../lib/gcc/x86_64-pc-mingw32/4.4.0/../../../../x86_64-pc-mingw32/include/winuser.h:730:
error: expected declaration specifiers or '...' before 'WNDENUMPROC'
...
I discovered this trying to build cppunit 1.12.1, which uses this feature
Stuart
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public