Re: [AD] Allegro 4.2.1 stress test |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wednesday 30 August 2006 02:07, Peter Wang wrote:
> You might want to use r7389. I had the same problem when doing the 4.3
> release (should've backported it right then, sorry).
Ah, I should have thought about checking for that.
I think I'm going to commit the attached patch, which is the same except
for cosmetics. I somehow expected generation to break because of missing
declarations in the examples, but obviously dependency scanning works a
bit differently from how I thought it should. :)
Evert
Index: examples/exlights.c
===================================================================
--- examples/exlights.c (revision 7491)
+++ examples/exlights.c (working copy)
@@ -397,7 +397,7 @@
}
-#else
+#elif !defined SCAN_DEPEND
#error Unknown endianess!
#endif
Index: examples/exunicod.c
===================================================================
--- examples/exunicod.c (revision 7491)
+++ examples/exunicod.c (working copy)
@@ -86,7 +86,7 @@
char allegro_str[] = "\x00\x41\x00\x6c\x00\x6c\x00\x65\x00\x67\x00\x72\x00\x6f\x00\x00";
-#else
+#elif !defined SCAN_DEPEND
#error endianess not defined
#endif
Index: src/pcx.c
===================================================================
--- src/pcx.c (revision 7491)
+++ src/pcx.c (working copy)
@@ -119,7 +119,7 @@
po = _rgb_r_shift_24/8;
#elif defined ALLEGRO_BIG_ENDIAN
po = 2 - _rgb_r_shift_24/8;
-#else
+#elif !defined SCAN_DEPEND
#error endianess not defined
#endif
@@ -150,7 +150,7 @@
po = _rgb_g_shift_24/8;
#elif defined ALLEGRO_BIG_ENDIAN
po = 2 - _rgb_g_shift_24/8;
-#else
+#elif !defined SCAN_DEPEND
#error endianess not defined
#endif
}
@@ -160,7 +160,7 @@
po = _rgb_b_shift_24/8;
#elif defined ALLEGRO_BIG_ENDIAN
po = 2 - _rgb_b_shift_24/8;
-#else
+#elif !defined SCAN_DEPEND
#error endianess not defined
#endif
}