Patch collection from Volker Grabsch to help Tux Paint cross-compile for Windows:

* Solve the 'FIXME: "finddir" ...' (The trick is to use "=" instead of ":=". That way, $(beos_PREFIX) will only be evaluated when it is actually used.)
* include "shlwapi.h" instead of "Shlwapi.h" (Otherwise, compiling for Windows will fail on a case sensitive file system. (e.g. a Unix file system when cross compiling))
* use FILENAME_MAX instead of NAME_MAX (FILENAME_MAX is more portable than NAME_MAX. Also, recent MinGW versions don't support NAME_MAX anymore.)
* Exposing font_thread_aborted via extern [tweak to Volker's patch which removed a logic test, which is probably not what we want]
* include parse.h (and thus compiler.h) after <stdio.h> (This ensures that the perror() macro of compiler.h won't confuse the perror() function declaration of <stdio.h>.)
* fix another compiling error about undefined variables (The tuxpaint.c uses printcommand/altprintcommand/papersize even when they aren't defined, i.e. when libpaper is not used. This patch solves the issue by using "#ifdef PAPER_H")
* call show_available_papersizes() only when libpaper is used
* permit cross compiling by using Make variables instead of hard-coded tools

Documented scottmc's Haiku improvements.
This commit is contained in:
William Kendrick 2010-02-25 07:06:13 +00:00
parent 5be63987d1
commit 7b31b7549d
8 changed files with 46 additions and 25 deletions

View file

@ -7,7 +7,7 @@ bill@newbreedsoftware.com
http://www.tuxpaint.org/
June 17, 2002 - February 16, 2010
June 17, 2002 - February 24, 2010
$Id$
@ -735,6 +735,9 @@ $Id$
* Windows 32-bit coding and builds
John Popplewell <john@johnnypops.demon.co.uk>
* Tweaks to help Windows cross-compiling under Linux
Volker Grabsch <vog@notjusthosting.com>
* Mac OS X coding and builds
Martin Fuhrer <mfuhrer@users.sourceforge.net>
Darrell Walisser <walisser@mac.com> [retired]
@ -744,6 +747,7 @@ $Id$
* BeOS coding and builds
Luc 'Begasus' Schrijvers <Begasus@skynet.be>
Scott McCreary <scottmc@users.sourceforge.net>
Marcin 'Shard' Konicki <shard at beosjournal.org> [retired]
* Debian Linux packages

View file

@ -8,7 +8,7 @@ http://www.tuxpaint.org/
$Id$
2009.February.18 (0.9.22)
2009.February.24 (0.9.22)
* New Tools:
----------
* Label - A tool to add text to a drawing, which can be modified or
@ -35,6 +35,14 @@ $Id$
* Wet Paint - Draws a light coat of paint, and smudges at the same time.
(Based on Smudge tool. Requested by gallery artist Angela.)
* Build System Improvements:
--------------------------
* Variety of tweaks to help Tux Paint cross-compile for Windows under Linux
Volker Grabsch <vog@notjusthosting.com>
* Added support for building under Haiku OS
Scott McCreary <scottmc@users.sourceforge.net>
* Other Improvements:
-------------------
* Template images are now supported. Similar to Starters, they are