mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Merging all previous allegro 4.3.10 patches into one patch file.
This commit is contained in:
858
media-libs/allegro/allegro-4.3.10-haiku-4.diff
Normal file
858
media-libs/allegro/allegro-4.3.10-haiku-4.diff
Normal file
@@ -0,0 +1,858 @@
|
||||
diff -urN allegro-4.3.10/addons/allegrogl/fix.sh allegro-4.3.10-haiku/addons/allegrogl/fix.sh
|
||||
--- allegro-4.3.10/addons/allegrogl/fix.sh 2008-01-01 11:20:16.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/addons/allegrogl/fix.sh 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -18,7 +18,7 @@
|
||||
echo "Compilation target adjustment."
|
||||
echo " Usage: fix <platform> [--dtou|--utod|--quick]"
|
||||
echo ""
|
||||
-echo " <platform> is one of: djgpp, mingw32, unix, macosx"
|
||||
+echo " <platform> is one of: djgpp, haiku, mingw32, unix, macosx"
|
||||
echo ""
|
||||
echo " --dtou converts from DOS/Win32 format to Unix"
|
||||
echo " --utod converts from Unix format to DOS/Win32"
|
||||
@@ -79,6 +79,7 @@
|
||||
|
||||
case "$1" in
|
||||
djgpp ) proc_fix "DJGPP" "makefile.dj";;
|
||||
+ haiku ) proc_fix "Haiku" "makefile.gen";;
|
||||
mingw ) proc_fix "Mingw32" "makefile.mgw";;
|
||||
mingw32 ) proc_fix "Mingw32" "makefile.mgw";;
|
||||
# used only by allegro's zipup.sh in packaging process
|
||||
diff -urN allegro-4.3.10/addons/loadpng/Makefile.be allegro-4.3.10-haiku/addons/loadpng/Makefile.be
|
||||
--- allegro-4.3.10/addons/loadpng/Makefile.be 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/addons/loadpng/Makefile.be 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -0,0 +1,57 @@
|
||||
+## Aux -*- Makefile -*- for BeOS/Haiku
|
||||
+
|
||||
+prefix := `/boot/common/bin/allegro-config --prefix`
|
||||
+libdir := $(prefix)/lib
|
||||
+includedir := $(prefix)/include
|
||||
+DESTDIR :=
|
||||
+
|
||||
+EXAMPLECFLAGS := -Wno-deprecated-declarations -I/boot/common/include
|
||||
+EXAMPLELIBS := -lpng -lz `/boot/common/bin/allegro-config --libs --addon` -L/boot/common/lib
|
||||
+
|
||||
+
|
||||
+#--------------------------------------------------
|
||||
+# Note: this is for gcc
|
||||
+# And I don't really think you should use it, but it's up to you
|
||||
+.PHONY: shared
|
||||
+
|
||||
+SHAREDLIB := libloadpng-$(VERSION).so
|
||||
+
|
||||
+shared: $(SHAREDLIB)
|
||||
+
|
||||
+$(SHAREDLIB): loadpng.c savepng.c regpng.c
|
||||
+ $(CC) -o $(SHAREDLIB) $(CFLAGS) -fPIC -shared loadpng.c savepng.c regpng.c
|
||||
+
|
||||
+#--------------------------------------------------
|
||||
+.PHONY: install install-headers install-shared
|
||||
+
|
||||
+install: $(LIB) install-headers
|
||||
+ install -d -m 755 $(DESTDIR)$(libdir)
|
||||
+ install -m 644 $(LIB) $(DESTDIR)$(libdir)
|
||||
+ @echo -
|
||||
+ @echo loadpng is now installed.
|
||||
+
|
||||
+install-shared: $(SHAREDLIB) install-headers
|
||||
+ install -d -m 755 $(DESTDIR)$(libdir)
|
||||
+ install -m 755 $(SHAREDLIB) $(DESTDIR)$(libdir)
|
||||
+
|
||||
+install-headers:
|
||||
+ install -d -m 755 $(DESTDIR)$(includedir)
|
||||
+ install -m 644 loadpng.h $(DESTDIR)$(includedir)
|
||||
+
|
||||
+#--------------------------------------------------
|
||||
+.PHONY: uninstall
|
||||
+
|
||||
+uninstall:
|
||||
+ -rm -f $(DESTDIR)$(includedir)/loadpng.h
|
||||
+ -rm -f $(DESTDIR)$(libdir)/$(LIB)
|
||||
+ @echo -
|
||||
+ @echo loadpng is now uninstalled.
|
||||
+
|
||||
+#--------------------------------------------------
|
||||
+.PHONY: clean veryclean
|
||||
+
|
||||
+clean:
|
||||
+ - rm -f loadpng.o savepng.o regpng.o $(LIB) $(SHAREDLIB)
|
||||
+
|
||||
+veryclean: clean
|
||||
+ - rm -f $(EXAMPLES) examples/saved.png
|
||||
diff -urN allegro-4.3.10/addons/loadpng/fix.sh allegro-4.3.10-haiku/addons/loadpng/fix.sh
|
||||
--- allegro-4.3.10/addons/loadpng/fix.sh 2007-12-28 01:05:30.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/addons/loadpng/fix.sh 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -8,7 +8,7 @@
|
||||
echo
|
||||
echo "Usage: $0 <platform> [--quick|--dtou|--utod]"
|
||||
echo
|
||||
- echo "Where platform is one of: djgpp, mingw32, unix"
|
||||
+ echo "Where platform is one of: beos, djgpp, haiku, mingw32, unix"
|
||||
echo "The --quick parameter turns off text file conversion, --dtou converts from"
|
||||
echo "DOS/Win32 format to Unix, --utod converts from Unix to DOS/Win32 format."
|
||||
echo "If no parameter is specified --quick is assumed."
|
||||
@@ -95,7 +95,9 @@
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
+ "beos" ) proc_fix "BeOS" "Makefile.be";;
|
||||
"djgpp" ) proc_fix "DOS (djgpp)" "Makefile.dj";;
|
||||
+ "haiku" ) proc_fix "Haiku" "Makefile.be";;
|
||||
"mingw" ) proc_fix "Windows (MinGW)" "Makefile.mgw";;
|
||||
"mingw32" ) proc_fix "Windows (MinGW)" "Makefile.mgw";;
|
||||
"unix" ) proc_fix "Unix" "Makefile.unx";;
|
||||
diff -urN allegro-4.3.10/addons/logg/Makefile.be allegro-4.3.10-haiku/addons/logg/Makefile.be
|
||||
--- allegro-4.3.10/addons/logg/Makefile.be 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/addons/logg/Makefile.be 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -0,0 +1,43 @@
|
||||
+PREFIX=`/boot/common/bin/allegro-config --prefix`
|
||||
+CC=gcc
|
||||
+FLAGS=-O2 -g0 `/boot/common/bin/allegro-config --cflags --addon` -I/boot/common/include
|
||||
+LFLAGS=-L. -L/boot/common/lib -llogg -logg -lvorbis -lvorbisfile `/boot/common/bin/allegro-config --libs --addon`
|
||||
+
|
||||
+all: lib play_ogg stream_ogg
|
||||
+
|
||||
+lib: liblogg.a
|
||||
+
|
||||
+liblogg.a: logg.o
|
||||
+ ar rc $@ $^
|
||||
+ ranlib $@
|
||||
+
|
||||
+logg.o: logg.c logg.h
|
||||
+ $(CC) $(FLAGS) -c logg.c
|
||||
+
|
||||
+play_ogg: play_ogg.c liblogg.a
|
||||
+ gcc $(FLAGS) play_ogg.c -o play_ogg $(LFLAGS)
|
||||
+
|
||||
+stream_ogg: stream_ogg.c liblogg.a
|
||||
+ gcc $(FLAGS) stream_ogg.c -o stream_ogg $(LFLAGS)
|
||||
+
|
||||
+clean:
|
||||
+ rm -f logg.o
|
||||
+
|
||||
+veryclean: clean
|
||||
+ rm -f liblogg.a
|
||||
+ rm -f play_ogg
|
||||
+ rm -f stream_ogg
|
||||
+
|
||||
+install:
|
||||
+ cp -f logg.h $(DESTDIR)$(PREFIX)/include
|
||||
+ cp -f liblogg.a $(DESTDIR)$(PREFIX)/lib
|
||||
+ @echo -
|
||||
+ @echo logg is now installed.
|
||||
+
|
||||
+uninstall:
|
||||
+ rm -f $(DESTDIR)$(PREFIX)/include/logg.h
|
||||
+ rm -f $(DESTDIR)$(PREFIX)/lib/liblogg.a
|
||||
+ @echo -
|
||||
+ @echo logg is now uninstalled.
|
||||
+
|
||||
+examples: play_ogg stream_ogg
|
||||
diff -urN allegro-4.3.10/addons/logg/fix.sh allegro-4.3.10-haiku/addons/logg/fix.sh
|
||||
--- allegro-4.3.10/addons/logg/fix.sh 2007-12-31 19:24:16.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/addons/logg/fix.sh 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -8,7 +8,7 @@
|
||||
echo
|
||||
echo "Usage: $0 <platform> [--quick|--dtou|--utod]"
|
||||
echo
|
||||
- echo "Where platform is one of: mingw32, unix"
|
||||
+ echo "Where platform is one of: beos, haiku, mingw32, unix"
|
||||
echo "The --quick parameter turns off text file conversion, --dtou converts from"
|
||||
echo "DOS/Win32 format to Unix, --utod converts from Unix to DOS/Win32 format."
|
||||
echo "If no parameter is specified --quick is assumed."
|
||||
@@ -94,6 +94,8 @@
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
+ "beos" ) proc_fix "BeOS" "Makefile.be";;
|
||||
+ "haiku" ) proc_fix "Haiku" "Makefile.be";;
|
||||
"mingw" ) proc_fix "Windows (MinGW)" "Makefile.migw";;
|
||||
"mingw32" ) proc_fix "Windows (MinGW)" "Makefile.migw";;
|
||||
"unix" ) proc_fix "Unix" "Makefile.unix";;
|
||||
diff -urN allegro-4.3.10/fix.sh allegro-4.3.10-haiku/fix.sh
|
||||
--- allegro-4.3.10/fix.sh 2008-01-01 21:59:18.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/fix.sh 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -9,7 +9,7 @@
|
||||
echo
|
||||
echo "Usage: $0 <platform> [--quick|--dtou|--utod|--utom|--mtou]"
|
||||
echo
|
||||
- echo "Where platform is one of: bcc32, beos, djgpp, mingw, qnx, unix"
|
||||
+ echo "Where platform is one of: bcc32, beos, djgpp, haiku, mingw, qnx, unix"
|
||||
echo "mac, macosx, macosx-universal and watcom."
|
||||
echo "The --quick parameter turns off text file conversion, --dtou converts from"
|
||||
echo "DOS/Win32 format to Unix, --utod converts from Unix to DOS/Win32 format,"
|
||||
@@ -140,6 +140,7 @@
|
||||
"bcc32" ) proc_fix "Windows (BCC32)" "makefile.bcc" "ALLEGRO_BCC32";;
|
||||
"beos" ) proc_fix "BeOS" "makefile.be" "ALLEGRO_BEOS";;
|
||||
"djgpp" ) proc_fix "DOS (djgpp)" "makefile.dj" "ALLEGRO_DJGPP";;
|
||||
+ "haiku" ) proc_fix "Haiku" "makefile.be" "ALLEGRO_HAIKU";;
|
||||
"mingw" ) proc_fix "Windows (MinGW)" "makefile.mgw" "ALLEGRO_MINGW32";;
|
||||
"mingw32" ) proc_fix "Windows (MinGW)" "makefile.mgw" "ALLEGRO_MINGW32";;
|
||||
# The 'msvc' target is undocumented in the help message, but is used
|
||||
diff -urN allegro-4.3.10/include/allegro/internal/aintern.h allegro-4.3.10-haiku/include/allegro/internal/aintern.h
|
||||
--- allegro-4.3.10/include/allegro/internal/aintern.h 2008-01-05 22:37:14.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/include/allegro/internal/aintern.h 2008-09-08 12:47:22.000000000 +0000
|
||||
@@ -189,7 +189,7 @@
|
||||
|
||||
|
||||
#if (defined ALLEGRO_DOS) || (defined ALLEGRO_DJGPP) || (defined ALLEGRO_WATCOM) || \
|
||||
- (defined ALLEGRO_QNX) || (defined ALLEGRO_BEOS)
|
||||
+ (defined ALLEGRO_QNX) || (defined ALLEGRO_BEOS) || (defined ALLEGRO_HAIKU)
|
||||
|
||||
AL_ARRAY(char *, _pckeys_names);
|
||||
|
||||
diff -urN allegro-4.3.10/include/allegro/internal/alconfig.h allegro-4.3.10-haiku/include/allegro/internal/alconfig.h
|
||||
--- allegro-4.3.10/include/allegro/internal/alconfig.h 2007-06-24 08:13:22.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/include/allegro/internal/alconfig.h 2008-09-08 12:47:22.000000000 +0000
|
||||
@@ -48,6 +48,8 @@
|
||||
#include "allegro/platform/albcc32.h"
|
||||
#elif defined ALLEGRO_MSVC
|
||||
#include "allegro/platform/almsvc.h"
|
||||
+ #elif defined ALLEGRO_HAIKU
|
||||
+ #include "allegro/platform/albecfg.h"
|
||||
#elif defined ALLEGRO_BEOS
|
||||
#include "allegro/platform/albecfg.h"
|
||||
#elif defined ALLEGRO_MPW
|
||||
diff -urN allegro-4.3.10/include/allegro/platform/albecfg.h allegro-4.3.10-haiku/include/allegro/platform/albecfg.h
|
||||
--- allegro-4.3.10/include/allegro/platform/albecfg.h 2007-06-16 02:52:28.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/include/allegro/platform/albecfg.h 2008-09-08 12:47:22.000000000 +0000
|
||||
@@ -31,7 +31,12 @@
|
||||
#define ALLEGRO_HAVE_SYS_TIME_H 1
|
||||
|
||||
/* describe this platform */
|
||||
-#define ALLEGRO_PLATFORM_STR "BeOS"
|
||||
+#if defined __BEOS__ && !defined __HAIKU__
|
||||
+ #define ALLEGRO_PLATFORM_STR "BeOS"
|
||||
+#endif
|
||||
+#if defined __HAIKU__
|
||||
+ #define ALLEGRO_PLATFORM_STR "Haiku"
|
||||
+#endif
|
||||
#define ALLEGRO_LITTLE_ENDIAN
|
||||
#define ALLEGRO_CONSOLE_OK
|
||||
#define ALLEGRO_USE_CONSTRUCTOR
|
||||
diff -urN allegro-4.3.10/include/allegro/platform/alplatf.h allegro-4.3.10-haiku/include/allegro/platform/alplatf.h
|
||||
--- allegro-4.3.10/include/allegro/platform/alplatf.h 2008-01-20 00:00:54.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/include/allegro/platform/alplatf.h 2008-09-08 12:58:39.000000000 +0000
|
||||
@@ -1,2 +1,2 @@
|
||||
/* generated by fix.sh */
|
||||
-#define ALLEGRO_UNIX
|
||||
+#define ALLEGRO_BEOS
|
||||
diff -urN allegro-4.3.10/makefile.all allegro-4.3.10-haiku/makefile.all
|
||||
--- allegro-4.3.10/makefile.all 2008-01-14 11:55:28.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/makefile.all 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -8,7 +8,7 @@
|
||||
# DEBUGMODE=2 selects a build intended to debug Allegro itself.
|
||||
# PROFILEMODE=1 selects a profiling build.
|
||||
# WARNMODE=1 selects strict compiler warnings.
|
||||
-# STATICLINK=1 use static linking (MinGW32, MSVC, BeOS).
|
||||
+# STATICLINK=1 use static linking (MinGW32, MSVC, BeOS, Haiku).
|
||||
# STATICRUNTIME=1 link to a static C runtime library (/MT) (MSVC)
|
||||
# TARGET_ARCH_COMPAT optimize for the given processor while preserving backwards
|
||||
# compatibility with older processors (GCC-based platforms).
|
||||
@@ -132,7 +132,7 @@
|
||||
# XXX this is duplicated in makefile.in
|
||||
DOCBASEFILES = ahack changes faq mistakes help thanks allegro const abi api packfile \
|
||||
readme makedoc datafile grabber dat dat2c dat2s license addons targets
|
||||
-DOCBUILDFILES = bcc32 beos darwin djgpp dmc linux macosx mingw32 msvc qnx unix watcom
|
||||
+DOCBUILDFILES = bcc32 beos darwin djgpp dmc haiku linux macosx mingw32 msvc qnx unix watcom
|
||||
DOCTXTBUILDFILES = $(addprefix docs/build/,$(addsuffix .txt,$(DOCBUILDFILES)))
|
||||
|
||||
DOCS = $(addprefix docs/txt/,$(addsuffix .txt,$(filter-out changes thanks readme, $(DOCBASEFILES))))
|
||||
diff -urN allegro-4.3.10/makefile.be allegro-4.3.10-haiku/makefile.be
|
||||
--- allegro-4.3.10/makefile.be 2008-01-11 11:30:16.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/makefile.be 2008-09-08 12:58:16.000000000 +0000
|
||||
@@ -10,7 +10,15 @@
|
||||
|
||||
# -------- define some variables that the primary makefile will use --------
|
||||
|
||||
+
|
||||
+ifeq ($(OS),BeOS)
|
||||
PLATFORM = BeOS
|
||||
+endif
|
||||
+
|
||||
+ifeq ($(OS),Haiku)
|
||||
+PLATFORM = Haiku
|
||||
+endif
|
||||
+
|
||||
CC = gcc
|
||||
EXE =
|
||||
OBJ = .o
|
||||
@@ -123,7 +131,13 @@
|
||||
|
||||
OBJECT_LIST = $(COMMON_OBJECTS) $(MY_OBJECTS) $(basename $(notdir $(ALLEGRO_SRC_BEOS_FILES)))
|
||||
|
||||
+ifeq ($(OS),BeOS)
|
||||
LIBRARIES = -lbe -lgame -ldevice -lmidi -lmedia -lnet
|
||||
+endif
|
||||
+
|
||||
+ifeq ($(OS),Haiku)
|
||||
+LIBRARIES = -lbe -lgame -ldevice -lmidi -lmedia -lnetwork
|
||||
+endif
|
||||
|
||||
PROGRAMS = bfixicon
|
||||
|
||||
@@ -167,7 +181,14 @@
|
||||
sed -e "s/@LIBS@/$(LIBRARIES)/" temp2 > temp
|
||||
sed -e "s/include/headers/" temp >temp2
|
||||
sed -e "s/ -l\$${lib_type}_unsharable//" temp2 >temp
|
||||
+
|
||||
+ifeq ($(OS),BeOS)
|
||||
sed -e "s/libdirs=-L\$${exec_prefix}\/lib/libdirs=\"-L\$${exec_prefix}\/lib\/x86 -L\/boot\/home\/config\/lib\"/" temp >/bin/allegro-config
|
||||
+endif
|
||||
+ifeq ($(OS),Haiku)
|
||||
+ sed -e "s/libdirs=-L\$${exec_prefix}\/lib/libdirs=\"-L\$${exec_prefix}\/lib\/x86 -L\/boot\/common\/lib\"/" temp >/bin/allegro-config
|
||||
+endif
|
||||
+
|
||||
rm -f temp temp2
|
||||
chmod a+x /bin/allegro-config
|
||||
|
||||
diff -urN allegro-4.3.10/misc/mkunixdists.sh allegro-4.3.10-haiku/misc/mkunixdists.sh
|
||||
--- allegro-4.3.10/misc/mkunixdists.sh 2008-01-10 21:45:48.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/misc/mkunixdists.sh 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -73,9 +73,9 @@
|
||||
# Hack'n'slash
|
||||
echo "Stripping to form end-user distribution"
|
||||
(cd $dir/$basename && {
|
||||
- (cd src && rm -rf beos qnx dos mac ppc win)
|
||||
- (cd obj && rm -rf bcc32 beos qnx djgpp mingw32 msvc watcom)
|
||||
- (cd lib && rm -rf bcc32 beos qnx djgpp mingw32 msvc watcom)
|
||||
+ (cd src && rm -rf beos haiku qnx dos mac ppc win)
|
||||
+ (cd obj && rm -rf bcc32 beos haiku qnx djgpp mingw32 msvc watcom)
|
||||
+ (cd lib && rm -rf bcc32 beos haiku qnx djgpp mingw32 msvc watcom)
|
||||
(cd include && rm -f bealleg.h qnxalleg.h macalleg.h winalleg.h)
|
||||
(cd misc && rm -f cmplog.pl dllsyms.lst findtext.sh fixpatch.sh fixver.sh)
|
||||
(cd misc && rm -f allegro-config-qnx.sh zipup.sh zipwin.sh *.bat *.c)
|
||||
@@ -91,11 +91,11 @@
|
||||
|
||||
# jpgalleg addon
|
||||
(cd addons/jpgalleg && rm -rf examples)
|
||||
- (cd addons/jpgalleg && rm -f makefile.be makefile.mgw makefile.dj)
|
||||
+ (cd addons/jpgalleg && rm -f makefile.be makefile.haiku makefile.mgw makefile.dj)
|
||||
(cd addons/jpgalleg && rm -f makefile.osx makefile.vc fix.bat readme.txt)
|
||||
(cd addons/jpgalleg/misc && rm -f fixver.sh runner.c)
|
||||
- (cd addons/jpgalleg/lib && rm -rf beos djgpp macosx mingw32 msvc)
|
||||
- (cd addons/jpgalleg/obj && rm -rf beos djgpp macosx mingw32 msvc)
|
||||
+ (cd addons/jpgalleg/lib && rm -rf beos djgpp haiku macosx mingw32 msvc)
|
||||
+ (cd addons/jpgalleg/obj && rm -rf beos djgpp haiku macosx mingw32 msvc)
|
||||
|
||||
# logg addon
|
||||
(cd addons/logg && rm -f Makefile.mingw play_ogg.c stream_ogg.c fix.bat)
|
||||
diff -urN allegro-4.3.10/misc/zipup.sh allegro-4.3.10-haiku/misc/zipup.sh
|
||||
--- allegro-4.3.10/misc/zipup.sh 2008-01-19 12:16:56.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/misc/zipup.sh 2008-09-08 12:58:43.000000000 +0000
|
||||
@@ -126,6 +126,30 @@
|
||||
make depend UNIX_TOOLS=1 CC=gcc
|
||||
|
||||
|
||||
+# generate dependencies for Haiku
|
||||
+echo "Generating Haiku dependencies..."
|
||||
+
|
||||
+./fix.sh haiku --quick
|
||||
+
|
||||
+make depend UNIX_TOOLS=1 CC=gcc
|
||||
+
|
||||
+
|
||||
# generate dependencies for QNX
|
||||
echo "Generating QNX dependencies..."
|
||||
|
||||
@@ -164,7 +188,7 @@
|
||||
for base in abi ahack allegro const faq help mistakes; do
|
||||
./_makedoc.exe -ascii docs/txt/$base.txt docs/src/$base._tx
|
||||
done
|
||||
-for base in bcc32 beos darwin djgpp linux macosx mingw32 msvc qnx unix watcom; do
|
||||
+for base in bcc32 beos darwin djgpp haiku linux macosx mingw32 msvc qnx unix watcom; do
|
||||
./_makedoc.exe -ascii docs/build/$base.txt docs/src/build/$base._tx
|
||||
done
|
||||
|
||||
diff -urN allegro-4.3.10/setup/keyconf.c allegro-4.3.10-haiku/setup/keyconf.c
|
||||
--- allegro-4.3.10/setup/keyconf.c 2005-04-07 23:37:20.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/setup/keyconf.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -25,8 +25,8 @@
|
||||
|
||||
|
||||
/* The code can't link on platforms that don't use src/misc/pckeys.c (everything
|
||||
- * but DOS, QNX, BEOS). */
|
||||
-#if (defined ALLEGRO_DOS) || (defined ALLEGRO_QNX) || (defined ALLEGRO_BEOS)
|
||||
+ * but DOS, QNX, BEOS, HAIKU). */
|
||||
+#if (defined ALLEGRO_DOS) || (defined ALLEGRO_QNX) || (defined ALLEGRO_BEOS) || (defined ALLEGRO_HAIKU)
|
||||
|
||||
|
||||
char *ascii_name[32] =
|
||||
diff -urN allegro-4.3.10/src/beos/baccel.cpp allegro-4.3.10-haiku/src/beos/baccel.cpp
|
||||
--- allegro-4.3.10/src/beos/baccel.cpp 2002-09-01 23:18:56.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/baccel.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bdispsw.cpp allegro-4.3.10-haiku/src/beos/bdispsw.cpp
|
||||
--- allegro-4.3.10/src/beos/bdispsw.cpp 2002-04-06 15:18:16.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bdispsw.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bdwindow.cpp allegro-4.3.10-haiku/src/beos/bdwindow.cpp
|
||||
--- allegro-4.3.10/src/beos/bdwindow.cpp 2005-10-27 20:57:00.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bdwindow.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bgfx.c allegro-4.3.10-haiku/src/beos/bgfx.c
|
||||
--- allegro-4.3.10/src/beos/bgfx.c 2004-11-26 16:05:12.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bgfx.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bgfxapi.cpp allegro-4.3.10-haiku/src/beos/bgfxapi.cpp
|
||||
--- allegro-4.3.10/src/beos/bgfxapi.cpp 2002-12-07 21:12:30.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bgfxapi.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bgfxdrv.c allegro-4.3.10-haiku/src/beos/bgfxdrv.c
|
||||
--- allegro-4.3.10/src/beos/bgfxdrv.c 2001-11-06 15:30:48.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bgfxdrv.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "allegro.h"
|
||||
#include "allegro/internal/aintern.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
BEGIN_GFX_DRIVER_LIST
|
||||
GFX_DRIVER_BEOS
|
||||
diff -urN allegro-4.3.10/src/beos/bjoy.c allegro-4.3.10-haiku/src/beos/bjoy.c
|
||||
--- allegro-4.3.10/src/beos/bjoy.c 2001-11-06 17:16:42.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bjoy.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bjoyapi.cpp allegro-4.3.10-haiku/src/beos/bjoyapi.cpp
|
||||
--- allegro-4.3.10/src/beos/bjoyapi.cpp 2004-07-04 14:44:50.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bjoyapi.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
static BJoystick *be_joy = NULL;
|
||||
static int32 num_devices, num_axes, num_hats, num_buttons;
|
||||
diff -urN allegro-4.3.10/src/beos/bjoydrv.c allegro-4.3.10-haiku/src/beos/bjoydrv.c
|
||||
--- allegro-4.3.10/src/beos/bjoydrv.c 2001-11-06 15:30:48.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bjoydrv.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "allegro.h"
|
||||
#include "allegro/internal/aintern.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
BEGIN_JOYSTICK_DRIVER_LIST
|
||||
JOYSTICK_DRIVER_BEOS
|
||||
diff -urN allegro-4.3.10/src/beos/bkey.c allegro-4.3.10-haiku/src/beos/bkey.c
|
||||
--- allegro-4.3.10/src/beos/bkey.c 2004-12-03 20:56:28.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bkey.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bkeyapi.cpp allegro-4.3.10-haiku/src/beos/bkeyapi.cpp
|
||||
--- allegro-4.3.10/src/beos/bkeyapi.cpp 2005-10-27 20:57:00.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bkeyapi.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -22,9 +22,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
#define KEY_ID_PC101 0 // the docs say it should be 0x83ab, but they lie
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bkeydrv.c allegro-4.3.10-haiku/src/beos/bkeydrv.c
|
||||
--- allegro-4.3.10/src/beos/bkeydrv.c 2001-11-06 15:30:48.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bkeydrv.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "allegro.h"
|
||||
#include "allegro/internal/aintern.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
_DRIVER_INFO _keyboard_driver_list[] =
|
||||
{
|
||||
diff -urN allegro-4.3.10/src/beos/bmidi.c allegro-4.3.10-haiku/src/beos/bmidi.c
|
||||
--- allegro-4.3.10/src/beos/bmidi.c 2006-03-18 15:05:34.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bmidi.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
MIDI_DRIVER midi_beos =
|
||||
{
|
||||
diff -urN allegro-4.3.10/src/beos/bmidiapi.cpp allegro-4.3.10-haiku/src/beos/bmidiapi.cpp
|
||||
--- allegro-4.3.10/src/beos/bmidiapi.cpp 2007-08-09 21:48:38.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bmidiapi.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
|
||||
BMidiSynth *_be_midisynth = NULL;
|
||||
diff -urN allegro-4.3.10/src/beos/bmididrv.c allegro-4.3.10-haiku/src/beos/bmididrv.c
|
||||
--- allegro-4.3.10/src/beos/bmididrv.c 2001-11-06 15:30:48.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bmididrv.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "allegro.h"
|
||||
#include "allegro/internal/aintern.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
BEGIN_MIDI_DRIVER_LIST
|
||||
MIDI_DRIVER_BEOS
|
||||
diff -urN allegro-4.3.10/src/beos/bmousapi.cpp allegro-4.3.10-haiku/src/beos/bmousapi.cpp
|
||||
--- allegro-4.3.10/src/beos/bmousapi.cpp 2005-10-27 20:57:00.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bmousapi.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -23,9 +23,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
#define MOUSE_THREAD_NAME "mouse driver"
|
||||
#define MOUSE_THREAD_PRIORITY 60
|
||||
diff -urN allegro-4.3.10/src/beos/bmousdrv.c allegro-4.3.10-haiku/src/beos/bmousdrv.c
|
||||
--- allegro-4.3.10/src/beos/bmousdrv.c 2001-11-06 15:30:48.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bmousdrv.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "allegro.h"
|
||||
#include "allegro/internal/aintern.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bmouse.c allegro-4.3.10-haiku/src/beos/bmouse.c
|
||||
--- allegro-4.3.10/src/beos/bmouse.c 2004-12-04 13:24:16.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bmouse.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/boverlay.cpp allegro-4.3.10-haiku/src/beos/boverlay.cpp
|
||||
--- allegro-4.3.10/src/beos/boverlay.cpp 2002-11-15 11:53:40.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/boverlay.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bsnd.c allegro-4.3.10-haiku/src/beos/bsnd.c
|
||||
--- allegro-4.3.10/src/beos/bsnd.c 2006-03-18 15:05:34.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bsnd.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
DIGI_DRIVER digi_beos =
|
||||
{
|
||||
diff -urN allegro-4.3.10/src/beos/bsndapi.cpp allegro-4.3.10-haiku/src/beos/bsndapi.cpp
|
||||
--- allegro-4.3.10/src/beos/bsndapi.cpp 2006-03-18 15:05:34.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bsndapi.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bsnddrv.c allegro-4.3.10-haiku/src/beos/bsnddrv.c
|
||||
--- allegro-4.3.10/src/beos/bsnddrv.c 2001-11-06 15:30:48.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bsnddrv.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
BEGIN_DIGI_DRIVER_LIST
|
||||
DIGI_DRIVER_BEOS
|
||||
diff -urN allegro-4.3.10/src/beos/bsysapi.cpp allegro-4.3.10-haiku/src/beos/bsysapi.cpp
|
||||
--- allegro-4.3.10/src/beos/bsysapi.cpp 2005-10-27 20:57:00.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bsysapi.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -27,9 +27,9 @@
|
||||
#include <sys/utsname.h>
|
||||
#endif
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
#define SYS_THREAD_PRIORITY B_NORMAL_PRIORITY
|
||||
#define SYS_THREAD_NAME "system driver"
|
||||
diff -urN allegro-4.3.10/src/beos/bsysdrv.c allegro-4.3.10-haiku/src/beos/bsysdrv.c
|
||||
--- allegro-4.3.10/src/beos/bsysdrv.c 2001-11-06 15:30:48.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bsysdrv.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "allegro.h"
|
||||
#include "allegro/internal/aintern.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
_DRIVER_INFO _system_driver_list[] =
|
||||
{
|
||||
diff -urN allegro-4.3.10/src/beos/bsystem.c allegro-4.3.10-haiku/src/beos/bsystem.c
|
||||
--- allegro-4.3.10/src/beos/bsystem.c 2002-12-07 21:10:58.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bsystem.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,11 +19,9 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
-
|
||||
-
|
||||
+#endif
|
||||
|
||||
SYSTEM_DRIVER system_beos = {
|
||||
SYSTEM_BEOS,
|
||||
diff -urN allegro-4.3.10/src/beos/btimeapi.cpp allegro-4.3.10-haiku/src/beos/btimeapi.cpp
|
||||
--- allegro-4.3.10/src/beos/btimeapi.cpp 2004-07-27 11:33:22.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/btimeapi.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/btimedrv.c allegro-4.3.10-haiku/src/beos/btimedrv.c
|
||||
--- allegro-4.3.10/src/beos/btimedrv.c 2001-11-06 15:30:48.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/btimedrv.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "allegro.h"
|
||||
#include "allegro/internal/aintern.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
-#endif
|
||||
+#endif
|
||||
|
||||
_DRIVER_INFO _timer_driver_list[] = {
|
||||
{TIMER_BEOS, &timer_beos, TRUE},
|
||||
diff -urN allegro-4.3.10/src/beos/btimer.c allegro-4.3.10-haiku/src/beos/btimer.c
|
||||
--- allegro-4.3.10/src/beos/btimer.c 2004-08-22 02:57:14.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/btimer.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bwindow.cpp allegro-4.3.10-haiku/src/beos/bwindow.cpp
|
||||
--- allegro-4.3.10/src/beos/bwindow.cpp 2002-11-15 11:53:40.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bwindow.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/beos/bwscreen.cpp allegro-4.3.10-haiku/src/beos/bwscreen.cpp
|
||||
--- allegro-4.3.10/src/beos/bwscreen.cpp 2004-11-26 17:27:02.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/beos/bwscreen.cpp 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "allegro/internal/aintern.h"
|
||||
#include "allegro/platform/aintbeos.h"
|
||||
|
||||
-#ifndef ALLEGRO_BEOS
|
||||
+#if !defined ALLEGRO_BEOS && !defined ALLEGRO_HAIKU
|
||||
#error something is wrong with the makefile
|
||||
#endif
|
||||
|
||||
diff -urN allegro-4.3.10/src/i386/asmdefs.inc allegro-4.3.10-haiku/src/i386/asmdefs.inc
|
||||
--- allegro-4.3.10/src/i386/asmdefs.inc 2007-06-16 02:52:28.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/i386/asmdefs.inc 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -31,6 +31,8 @@
|
||||
#include "obj/msvc/asmdef.inc"
|
||||
#elif defined ALLEGRO_WATCOM
|
||||
#include "obj/watcom/asmdef.inc"
|
||||
+#elif defined ALLEGRO_HAIKU
|
||||
+ #include "obj/beos/asmdef.inc"
|
||||
#elif defined ALLEGRO_BEOS
|
||||
#include "obj/beos/asmdef.inc"
|
||||
#elif defined ALLEGRO_QNX
|
||||
diff -urN allegro-4.3.10/src/midi.c allegro-4.3.10-haiku/src/midi.c
|
||||
--- allegro-4.3.10/src/midi.c 2007-04-12 16:19:54.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/src/midi.c 2008-09-08 12:58:19.000000000 +0000
|
||||
@@ -1122,7 +1122,7 @@
|
||||
running_status = 0;
|
||||
|
||||
while (p < end) { /* work through data stream */
|
||||
-#ifdef ALLEGRO_BEOS
|
||||
+#if defined ALLEGRO_BEOS || defined ALLEGRO_HAIKU
|
||||
/* Is there a bug in this routine, or in gcc under BeOS/x86? --PW */
|
||||
{ int i; for (i=1; i; i--); }
|
||||
#endif
|
||||
diff -urN allegro-4.3.10/tools/dat2c.c allegro-4.3.10-haiku/tools/dat2c.c
|
||||
--- allegro-4.3.10/tools/dat2c.c 2005-04-28 09:53:38.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/tools/dat2c.c 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -342,7 +342,7 @@
|
||||
}
|
||||
|
||||
if (dat2c->lformat == lineformat_default)
|
||||
-#if (defined ALLEGRO_UNIX || defined ALLEGRO_QNX || defined ALLEGRO_BEOS || defined ALLEGRO_MACOSX)
|
||||
+#if (defined ALLEGRO_UNIX || defined ALLEGRO_QNX || defined ALLEGRO_BEOS || defined ALLEGRO_HAIKU || defined ALLEGRO_MACOSX)
|
||||
dat2c->lformat = lineformat_unix;
|
||||
#elif (defined ALLEGRO_WINDOWS || defined ALLEGRO_DOS)
|
||||
dat2c->lformat = lineformat_dos;
|
||||
diff -urN allegro-4.3.10/tools/datedit.c allegro-4.3.10-haiku/tools/datedit.c
|
||||
--- allegro-4.3.10/tools/datedit.c 2007-10-08 16:23:36.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/tools/datedit.c 2008-09-08 12:47:21.000000000 +0000
|
||||
@@ -121,6 +121,8 @@
|
||||
#include "obj/dmc/plugins.h"
|
||||
#elif defined ALLEGRO_BEOS
|
||||
#include "obj/beos/plugins.h"
|
||||
+ #elif defined ALLEGRO_HAIKU
|
||||
+ #include "obj/beos/plugins.h"
|
||||
#elif defined ALLEGRO_BCC32
|
||||
#include "obj/bcc32/plugins.h"
|
||||
#elif defined ALLEGRO_MPW
|
||||
diff -urN allegro-4.3.10/tools/grabber.c allegro-4.3.10-haiku/tools/grabber.c
|
||||
--- allegro-4.3.10/tools/grabber.c 2006-07-24 13:09:26.000000000 +0000
|
||||
+++ allegro-4.3.10-haiku/tools/grabber.c 2008-09-08 12:58:49.000000000 +0000
|
||||
@@ -3132,6 +3132,7 @@
|
||||
case OSTYPE_QNX: s = "QNX"; break;
|
||||
case OSTYPE_UNIX: s = "Unix"; break;
|
||||
case OSTYPE_BEOS: s = "BeOS"; break;
|
||||
+ case OSTYPE_HAIKU: s = "Haiku"; break;
|
||||
case OSTYPE_MACOS: s = "MacOS"; break;
|
||||
case OSTYPE_MACOSX: s = "MacOS X"; break;
|
||||
default: s = "Unknown"; break;
|
||||
Reference in New Issue
Block a user