I just committed a couple of small changes affecting the build using 
lib/Makefile.mingw, including the changes mentioned below. In the 
Makefile there is now defined HAVE_STRCASECMP=1, and the #defines in 
boinc_win.h are switched off for gcc-4.

I suspected that the #defines were put there for a reason, but if they 
aren't necessary for _any_ MINGW build they should be removed altogether.

If it doesn't hurt there for any Windows build, I suggest putting 
"#define HAVE_STRCASECMP 1" in win_build/config.h, which is the config 
file used for Windows builds.

Best,
Bernd

Bernd Machenschalk wrote, On 10/20/10 9:31 AM:
> #ifdef __MINGW32__
> #ifdef __cplusplus
> extern "C" {
> #endif //cplusplus
> void __cdecl _fpreset (void);
> void __cdecl fpreset (void);
> #if (__GNUC__<  4) // breaks build on MinGW 4
> #define SetClassLongPtr SetClassLong
> #define GCLP_HICON GCL_HICON
> #define GCLP_HICONSM GCL_HICONSM
> #endif //GNUC
> #ifdef __cplusplus
> }
> #endif //cplusplus
> #endif //MINGW
>
> Eric, I assume you still need the #defines for your version of MinGW gcc
> (probably gcc-3.4.5), right?
>
> Best,
> Bernd
>
> Eric J Korpela wrote, On 10/19/10 10:43 PM:
>> In your config_win.h  (or maybe it's boinc_win.h?)  you need to
>> "#define HAVE_STRCASECMP  1" .  You'll probably need to put it in an
>> #ifdef __MINGW32__ because it's either not there for Visual C++, or
>> it's not a problem there for some other reason.
>>
>> If that doesn't fix the problem, it means that the header file isn't
>> properly being included.  You may have to follow the header chain to
>> see where it should have been included.h

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to