Re: [AD] Allegro 4.2.1 stress test

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Tuesday 29 August 2006 23:09, Evert Glebbeek wrote:
> No, but the script that generates the archives (misc/zipup.sh) is 
supposed 
> to generate the dependencies for all platforms. You should never need to 
> run make depend manually unless you use an SVN version of Allegro.
> I'll check where the difference comes from.

Ah, I think I've found the problem. Some of the source files and examples 
fail to compile with an #error: endianesse not defined when generating the 
dependencies for the MacOS X port on a non-MacOS X system.
The attached patch works around it, but I'd personally rather define some 
arbitrary endianesse if SCAN_DEPEND is defined; which one doesn't matter.

Evert
Index: include/allegro/internal/alconfig.h
===================================================================
--- include/allegro/internal/alconfig.h	(revision 5662)
+++ include/allegro/internal/alconfig.h	(working copy)
@@ -346,6 +346,11 @@
                               (*((unsigned char *)(p) + 1) = (c) >> 8),  \
                               (*((unsigned char *)(p) + 2) = (c)))
 
+#elif defined SCAN_DEPEND
+
+   #define READ3BYTES(p)
+   #define WRITE3BYTES(p,c)
+
 #else
    #error endianess not defined
 #endif


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/