Re: [AD] Snapshot generation error |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Saturday 14 January 2006 12:58, Evert Glebbeek wrote:
> I can see two possibel fixes: always define ALLEGRO_LITTLE_ENDIAN (say)
> when SCAN_DEPEND is true for MacOS X, or disable the error when
> SCAN_DEPEND is defined. I think the second is the more sane behavior and
> I'll submit a patch accordingly.
Proposed patch attached. Limited testing suggests that it works well.
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