From: Dennis S. <sy...@yo...> - 2004-06-30 16:49:44
|
Rockon Duilio, Tho could you rename it to VISUAL_BIG_ENDIAN seen al the macros start with VISUAL ?, or might it be nicer to have all the macros start with LV_, I've had this doubt for quite a while. On Wed, 2004-06-30 at 13:41 -0300, Duilio Javier Protti wrote: > 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. |