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:
parent
5be63987d1
commit
7b31b7549d
8 changed files with 46 additions and 25 deletions
|
|
@ -24,7 +24,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
June 14, 2002 - February 18, 2006
|
||||
June 14, 2002 - February 24, 2010
|
||||
$Id$
|
||||
*/
|
||||
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
WIN32 and MINGW don't have strcasestr().
|
||||
*/
|
||||
#define NOMINMAX
|
||||
#include "Shlwapi.h"
|
||||
#include "shlwapi.h"
|
||||
#define strcasestr StrStrI
|
||||
#endif /* WIN32 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue