Re: [AD] Allegro 4.2.1 stress test |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Allegro 4.2.1 stress test
- From: Evert Glebbeek <eglebbk@xxxxxxxxxx>
- Date: Tue, 29 Aug 2006 23:29:15 +0200
On Tuesday 29 August 2006 23:27, Evert Glebbeek wrote:
> The attached patch works around it,
Err... no, this one does
Evert
Index: src/pcx.c
===================================================================
--- src/pcx.c (revision 7491)
+++ src/pcx.c (working copy)
@@ -119,6 +119,8 @@
po = _rgb_r_shift_24/8;
#elif defined ALLEGRO_BIG_ENDIAN
po = 2 - _rgb_r_shift_24/8;
+#elif defined SCAN_DEPEND
+ /* Don't care about endianess if scanning dependencies */
#else
#error endianess not defined
#endif
@@ -150,6 +152,8 @@
po = _rgb_g_shift_24/8;
#elif defined ALLEGRO_BIG_ENDIAN
po = 2 - _rgb_g_shift_24/8;
+#elif defined SCAN_DEPEND
+ /* Don't care about endianess if scanning dependencies */
#else
#error endianess not defined
#endif
@@ -160,6 +164,8 @@
po = _rgb_b_shift_24/8;
#elif defined ALLEGRO_BIG_ENDIAN
po = 2 - _rgb_b_shift_24/8;
+#elif defined SCAN_DEPEND
+ /* Don't care about endianess if scanning dependencies */
#else
#error endianess not defined
#endif
Index: examples/exlights.c
===================================================================
--- examples/exlights.c (revision 7491)
+++ examples/exlights.c (working copy)
@@ -287,7 +287,8 @@
}
-#elif defined ALLEGRO_BIG_ENDIAN
+/* Don't care about endianess if scanning dependencies */
+#elif defined ALLEGRO_BIG_ENDIAN || defined SCAN_DEPEND
/* lookup tables for speeding up the color conversion */
Index: examples/exunicod.c
===================================================================
--- examples/exunicod.c (revision 7491)
+++ examples/exunicod.c (working copy)
@@ -57,7 +57,8 @@
char allegro_str[] = "\x41\x00\x6c\x00\x6c\x00\x65\x00\x67\x00\x72\x00\x6f\x00\x00\x00";
-#elif defined ALLEGRO_BIG_ENDIAN
+/* Don't care about endianess if scanning dependencies */
+#elif defined ALLEGRO_BIG_ENDIAN || defined SCAN_DEPEND
/* UTF-16BE */
char message_en[] = "\x00\x57\x00\x65\x00\x6c\x00\x63\x00\x6f\x00\x6d\x00\x65\x00\x20\x00\x74\x00\x6f\x00\x20\x00\x00";