Lines 165-170
Link Here
|
165 |
|
165 |
|
166 |
#include <sys/types.h> |
166 |
#include <sys/types.h> |
167 |
|
167 |
|
|
|
168 |
#if defined(HAVE_ENDIAN_H) |
169 |
# include <endian.h> |
170 |
#endif |
171 |
#if defined(HAVE_SYS_ENDIAN_H) |
172 |
# include <sys/endian.h> |
173 |
#endif |
174 |
#if defined(HAVE_MACHINE_ENDIAN_H) |
175 |
# include <machine/endian.h> |
176 |
#endif |
177 |
#if defined(HAVE_SYS_ISA_DEFS_H) |
178 |
# include <sys/isa_defs.h> |
179 |
#endif |
180 |
|
168 |
/* #define PIXEL_FORMAT RGB565 */ |
181 |
/* #define PIXEL_FORMAT RGB565 */ |
169 |
#define GFX_MULTI_FORMAT |
182 |
#define GFX_MULTI_FORMAT |
170 |
|
183 |
|
Lines 343-354
Link Here
|
343 |
#define SIG_PF void(*)(int) |
356 |
#define SIG_PF void(*)(int) |
344 |
#endif |
357 |
#endif |
345 |
|
358 |
|
346 |
#if defined(__i386__) || defined(__i486__) || defined(__i586__) || \ |
359 |
#if defined(BYTE_ORDER) |
347 |
defined(__x86_64__) || defined(__WIN32__) || defined(__alpha__) |
360 |
# if BYTE_ORDER == LITTLE_ENDIAN |
348 |
#define LSB_FIRST |
361 |
# define LSB_FIRST |
349 |
#define FAST_LSB_WORD_ACCESS |
362 |
# else |
|
|
363 |
# define MSB_FIRST |
364 |
# endif |
365 |
#elif defined(WORDS_LITTLENDIAN) |
366 |
# define LSB_FIRST |
367 |
#elif defined(WORDS_BIGENDIAN) |
368 |
# define MSB_FIRST |
350 |
#else |
369 |
#else |
351 |
#define MSB_FIRST |
370 |
# if defined(__i386__) || defined(__i486__) || defined(__i586__) || \ |
|
|
371 |
defined(__x86_64__) || defined(__WIN32__) || defined(__alpha__) |
372 |
# define LSB_FIRST |
373 |
# else |
374 |
# define MSB_FIRST |
375 |
# endif |
376 |
#endif |
377 |
|
378 |
#if defined(LSB_FIRST) |
379 |
# define FAST_LSB_WORD_ACCESS |
352 |
#endif |
380 |
#endif |
353 |
|
381 |
|
354 |
#ifdef __sun |
382 |
#ifdef __sun |