From: Duilio J. P. <dp...@fc...> - 2004-06-30 16:40:14
|
I have added endianness detection to the configure script. For make use of it within libvisual itself, just do: #include <lvconfig.h> void f () { if (LV_BIG_ENDIAN) { ... } else if (LV_LITTLE_ENDIAN) { ... } else { /* weird machine */ ... } } Outside libvisual can be used just including <libvisual/libvisual.h>. I hope will be helpful. Duilio. |