On Fri, 2009-08-28 at 10:40 +0200, Pierre Ynard wrote:
> Hello,
> 
> Since revision 1337 "Define struct _SHELLEXECUTEINFO instead of struct
> _SHELLEXECUTEINFOA and struct _SHELLEXECUTEINFOW", the header file
> shlobj.h is broken, and its inclusion will give the following error:
> 
> shlobj.h:1271:
> error: expected declaration specifiers or '...' before 'LPSHELLEXECUTEINFOA'
> 
> Reverting the commit fixes the problem.

I'm not sure whether your statement is entirely accurate.

I just tested two compiles with the attached source, none gave a
problem :
pavilion: {1088} arm-mingw32ce-gcc -c t.c
t.c:2:2: warning: #warning __MINGW32__ is defined
t.c:7:2: warning: #warning _WIN32 is defined
t.c:12:2: warning: #warning WIN32 is defined
t.c:17:2: warning: #warning WINNT is defined
t.c:24:2: warning: #warning __MSVCRT__ not defined
t.c:27:2: warning: #warning UNDER_CE is defined
t.c:32:2: warning: #warning UNICODE is defined
pavilion: {1089} arm-cegcc-gcc -c t.c
t.c:4:2: warning: #warning __MINGW32__ not defined
t.c:9:2: warning: #warning _WIN32 not defined
t.c:14:2: warning: #warning WIN32 not defined
t.c:19:2: warning: #warning WINNT not defined
t.c:24:2: warning: #warning __MSVCRT__ not defined
t.c:27:2: warning: #warning UNDER_CE is defined
t.c:32:2: warning: #warning UNICODE is defined
pavilion: {1090} 

As you'll see in the source, all this warning stuff was intentional.

Inspection of lines around 1271 in shlobj.h reveals that this code
should not have been compiled, it is in #ifndef UNDER_CE guards. The
warning messages above tell that it has been defined as it should.

So how did you compile this ?

        Danny
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
#ifdef __MINGW32__
#warning __MINGW32__ is defined
#else
#warning __MINGW32__ not defined
#endif
#ifdef _WIN32
#warning _WIN32 is defined
#else
#warning _WIN32 not defined
#endif
#ifdef WIN32
#warning WIN32 is defined
#else
#warning WIN32 not defined
#endif
#ifdef WINNT
#warning WINNT is defined
#else
#warning WINNT not defined
#endif
#ifdef __MSVCRT__
#warning __MSVCRT__ is defined
#else
#warning __MSVCRT__ not defined
#endif
#ifdef UNDER_CE
#warning UNDER_CE is defined
#else
#warning UNDER_CE not defined
#endif
#ifdef UNICODE
#warning UNICODE is defined
#else
#warning UNICODE not defined
#endif

#include <shlobj.h>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to