Commit a2e764f6 authored by Oliver Bock's avatar Oliver Bock
Browse files

Added GCC 4.4 MinGW support

* Using MinGW provided by Debian (Squeeze)
* Minor update to existing BOINC patch
parent 48636377
......@@ -503,11 +503,16 @@ set_mingw()
{
# general config
PREFIX=$ROOT/install
TARGET_HOST=i586-pc-mingw32
TARGET_HOST=i586-mingw32msvc
BUILD_HOST=i386-linux
PATH_MINGW="$PREFIX/bin:$PREFIX/$TARGET_HOST/bin:$PATH"
PATH="$PATH_MINGW"
export PATH
export CC=`which ${TARGET_HOST}-gcc`
export CXX=`which ${TARGET_HOST}-g++`
export CPPFLAGS="-D_WIN32_WINDOWS=0x0410 $CPPFLAGS"
}
......@@ -780,10 +785,6 @@ build_mac()
build_win32()
{
export CPPFLAGS="-D_WIN32_WINDOWS=0x0410 $CPPFLAGS"
prepare_mingw || failure
build_mingw || failure
set_mingw || failure
build_sdl_mingw || failure
build_freetype_mingw || failure
......
--- boinc_win.h
+++ boinc_win.h 2008-06-03 17:35:38.000000000 +0200
@@ -73,6 +73,10 @@
#include <userenv.h>
#include <aclapi.h>
+#if defined(__MINGW32__)
+#include <stdint.h>
+#endif
+
#if !defined(__CYGWIN32__) || defined(USE_WINSOCK)
/* If we're not running under CYGWIN use windows networking */
@@ -108,7 +108,7 @@
#include <commctrl.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment