- fixed whitespace error in Makefile.mingw                                                                                                                                                  
        - build and install svn_version.h in Makefile.mingw                                                                                                                                         
        - fixed boinc_win.h for MinGW gcc-4                                                                                                                                                         
        - not sure why client_msgs.h was ever included in procinfo_unix.cpp,                                                                                                                      
          but in current code caused a nasty trail of includes breaking the                                                                                                                         
          Linux build, so removed it

svn path=/trunk/boinc/; revision=22561
This commit is contained in:
Bernd Machenschalk 2010-10-20 11:28:02 +00:00
parent 2201bfec30
commit a73bbac1dc
4 changed files with 24 additions and 5 deletions

View File

@ -7528,3 +7528,17 @@ Charlie 16 Oct 2010
lib/ lib/
mac/ mac/
mac_backtrace.cpp mac_backtrace.cpp
Bernd 20 Oct 2010
- lib:
- fixed whitespace error in Makefile.mingw
- build and install svn_version.h in Makefile.mingw
- fixed boinc_win.h for MinGW gcc-4
- not sure why "client_msgs.h" was ever included in procinfo_unix.cpp,
but in current code caused a nasty trail of includes breaking the
Linux build, so removed it
lib/
Makefile.mingw
boinc_win.h
procinfo_unix.cpp

View File

@ -12,7 +12,8 @@ HEADERS = $(BOINC_SRC)/version.h $(BOINC_SRC)/api/boinc_api.h $(BOINC_SRC)/api/g
$(BOINC_SRC)/lib/boinc_win.h $(BOINC_SRC)/lib/url.h $(BOINC_SRC)/lib/common_defs.h $(BOINC_SRC)/lib/diagnostics.h \ $(BOINC_SRC)/lib/boinc_win.h $(BOINC_SRC)/lib/url.h $(BOINC_SRC)/lib/common_defs.h $(BOINC_SRC)/lib/diagnostics.h \
$(BOINC_SRC)/lib/diagnostics_win.h $(BOINC_SRC)/lib/filesys.h $(BOINC_SRC)/lib/hostinfo.h $(BOINC_SRC)/lib/proxy_info.h \ $(BOINC_SRC)/lib/diagnostics_win.h $(BOINC_SRC)/lib/filesys.h $(BOINC_SRC)/lib/hostinfo.h $(BOINC_SRC)/lib/proxy_info.h \
$(BOINC_SRC)/lib/prefs.h $(BOINC_SRC)/lib/miofile.h $(BOINC_SRC)/lib/mfile.h $(BOINC_SRC)/lib/parse.h \ $(BOINC_SRC)/lib/prefs.h $(BOINC_SRC)/lib/miofile.h $(BOINC_SRC)/lib/mfile.h $(BOINC_SRC)/lib/parse.h \
$(BOINC_SRC)/lib/util.h $(BOINC_SRC)/lib/coproc.h $(BOINC_SRC)/lib/cal_boinc.h $(BOINC_SRC)/win_build/config.h $(BOINC_SRC)/lib/util.h $(BOINC_SRC)/lib/coproc.h $(BOINC_SRC)/lib/cal_boinc.h $(BOINC_SRC)/lib/svn_version.h \
$(BOINC_SRC)/win_build/config.h
ZIP_HEADERS = zip/boinc_zip.h ZIP_HEADERS = zip/boinc_zip.h
@ -55,7 +56,7 @@ INCS = -I"$(BOINC_SRC)" -I"$(BOINC_SRC)/db" -I"$(BOINC_SRC)/lib" -I"$(BOINC_SRC)
# set NOCYGWIN=-mno-cygwin to build non-Cywin Windows libs under Cygwin # set NOCYGWIN=-mno-cygwin to build non-Cywin Windows libs under Cygwin
# -D_WIN32_WINDOWS=0x0410 sets to use Win98 API # -D_WIN32_WINDOWS=0x0410 sets to use Win98 API
CCXXFLAGS = $(INCS) $(DEBUG) --include $(BOINC_SRC)/version.h -DEINSTEINATHOME_CROSS_BUILD -DMINGW_WIN32 \ CCXXFLAGS = $(INCS) $(DEBUG) --include $(BOINC_SRC)/version.h -DEINSTEINATHOME_CROSS_BUILD -DMINGW_WIN32 \
-DHAVE_STRCASECMP -DWIN32 -D_WIN32 -D_WIN32_WINDOWS=0x0410 -D_MT -DNDEBUG -D_WINDOWS -DBOINC \ -DHAVE_STRCASECMP -DWIN32 -D_WIN32 -D_WIN32_WINDOWS=0x0410 -D_MT -DNDEBUG -D_WINDOWS -DBOINC \
-DNODB -D_CONSOLE -mtune=pentium-m -fexceptions -march=i386 -O2 $(NOCYGWIN) -DNODB -D_CONSOLE -mtune=pentium-m -fexceptions -march=i386 -O2 $(NOCYGWIN)
# flags for compiling boinc_zip # flags for compiling boinc_zip
@ -110,6 +111,9 @@ md5.o: $(BOINC_SRC)/lib/md5.c
z_util.o: $(BOINC_SRC)/zip/zip/util.c z_util.o: $(BOINC_SRC)/zip/zip/util.c
$(CC) -c $< -o $@ $(ZIP_FLAGS) $(CC) -c $< -o $@ $(ZIP_FLAGS)
$(BOINC_SRC)/lib/svn_version.h:
cd $(BOINC_SRC)/lib && sh ../generate_svn_version.sh
# set to the target ranlib when cross-compiling # set to the target ranlib when cross-compiling
RANLIB ?= ranlib RANLIB ?= ranlib

View File

@ -249,13 +249,15 @@ extern "C" {
#endif #endif
void __cdecl _fpreset (void); void __cdecl _fpreset (void);
void __cdecl fpreset (void); void __cdecl fpreset (void);
#if (__GNUC__ < 4) // breaks build on MinGW gcc-4
#define SetClassLongPtr SetClassLong #define SetClassLongPtr SetClassLong
#define GCLP_HICON GCL_HICON #define GCLP_HICON GCL_HICON
#define GCLP_HICONSM GCL_HICONSM #define GCLP_HICONSM GCL_HICONSM
#endif //GNUC
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif //cplusplus
#endif #endif //MINGW
// On the Win32 platform include file and line number information for each // On the Win32 platform include file and line number information for each
// memory allocation/deallocation // memory allocation/deallocation

View File

@ -45,7 +45,6 @@
#include "procinfo.h" #include "procinfo.h"
#include "str_util.h" #include "str_util.h"
#include "str_replace.h" #include "str_replace.h"
#include "client_msgs.h"
using std::vector; using std::vector;