Fixed allegro build.

This commit is contained in:
Scott McCreary
2010-10-30 22:49:07 +00:00
parent 765716a4ce
commit c56e4c4089

View File

@@ -1,6 +1,6 @@
diff -Naur allegro-4.4.1.1/src/beos/bdwindow.cpp allegro-4.4.1.1-haiku/src/beos/bdwindow.cpp
--- allegro-4.4.1.1/src/beos/bdwindow.cpp 2008-10-21 01:03:43.042467328 +0000
+++ allegro-4.4.1.1-haiku/src/beos/bdwindow.cpp 2010-09-20 02:39:19.000000000 +0000
diff -urN allegro-4.4.1.1/src/beos/bdwindow.cpp allegro-4.4.1.1-haiku/src/beos/bdwindow.cpp
--- allegro-4.4.1.1/src/beos/bdwindow.cpp 2008-10-21 01:03:43.061865984 +0000
+++ allegro-4.4.1.1-haiku/src/beos/bdwindow.cpp 2010-10-30 22:40:51.000000000 +0000
@@ -413,9 +413,9 @@
}
@@ -14,9 +14,9 @@ diff -Naur allegro-4.4.1.1/src/beos/bdwindow.cpp allegro-4.4.1.1-haiku/src/beos/
#else
bmp->read_bank = _be_gfx_bwindow_read_write_bank_asm;
bmp->write_bank = _be_gfx_bwindow_read_write_bank_asm;
diff -Naur allegro-4.4.1.1/src/beos/bwindow.cpp allegro-4.4.1.1-haiku/src/beos/bwindow.cpp
--- allegro-4.4.1.1/src/beos/bwindow.cpp 2008-10-20 08:27:27.042467328 +0000
+++ allegro-4.4.1.1-haiku/src/beos/bwindow.cpp 2010-09-20 02:40:37.000000000 +0000
diff -urN allegro-4.4.1.1/src/beos/bwindow.cpp allegro-4.4.1.1-haiku/src/beos/bwindow.cpp
--- allegro-4.4.1.1/src/beos/bwindow.cpp 2008-10-20 08:27:27.061603840 +0000
+++ allegro-4.4.1.1-haiku/src/beos/bwindow.cpp 2010-10-30 22:40:51.000000000 +0000
@@ -347,9 +347,9 @@
}
@@ -30,9 +30,9 @@ diff -Naur allegro-4.4.1.1/src/beos/bwindow.cpp allegro-4.4.1.1-haiku/src/beos/b
#else
bmp->read_bank = _be_gfx_bwindow_read_write_bank_asm;
bmp->write_bank = _be_gfx_bwindow_read_write_bank_asm;
diff -Naur allegro-4.4.1.1/src/beos/bwscreen.cpp allegro-4.4.1.1-haiku/src/beos/bwscreen.cpp
--- allegro-4.4.1.1/src/beos/bwscreen.cpp 2008-10-20 08:27:27.042729472 +0000
+++ allegro-4.4.1.1-haiku/src/beos/bwscreen.cpp 2010-09-20 02:40:07.000000000 +0000
diff -urN allegro-4.4.1.1/src/beos/bwscreen.cpp allegro-4.4.1.1-haiku/src/beos/bwscreen.cpp
--- allegro-4.4.1.1/src/beos/bwscreen.cpp 2008-10-20 08:27:27.061865984 +0000
+++ allegro-4.4.1.1-haiku/src/beos/bwscreen.cpp 2010-10-30 22:40:51.000000000 +0000
@@ -363,9 +363,9 @@
#ifdef ALLEGRO_NO_ASM
@@ -46,3 +46,17 @@ diff -Naur allegro-4.4.1.1/src/beos/bwscreen.cpp allegro-4.4.1.1-haiku/src/beos/
}
#else
if (gfx_capabilities) {
diff -urN allegro-4.4.1.1/src/file.c allegro-4.4.1.1-haiku/src/file.c
--- allegro-4.4.1.1/src/file.c 2008-10-23 13:38:21.006815744 +0000
+++ allegro-4.4.1.1-haiku/src/file.c 2010-10-30 22:46:02.595853312 +0000
@@ -31,6 +31,10 @@
#include "allegro.h"
#include "allegro/internal/aintern.h"
+#ifdef ALLEGRO_HAIKU
+ #define O_BINARY 0
+#endif
+
#ifndef ALLEGRO_MPW
#include <sys/stat.h>
#endif