Line
Link Here
|
0 |
-- snes9x-1.5-src/configure.in |
0 |
++ snes9x-1.5-src/configure.in |
Lines 625-630
Link Here
|
625 |
SYSDEFINES="$SYSDEFINES"' -DHAVE_STDINT_H' |
625 |
SYSDEFINES="$SYSDEFINES"' -DHAVE_STDINT_H' |
626 |
]) |
626 |
]) |
627 |
|
627 |
|
|
|
628 |
AC_CHECK_HEADER(endian.h, [ |
629 |
SYSDEFINES="$SYSDEFINES"' -DHAVE_ENDIAN_H' |
630 |
]) |
631 |
AC_CHECK_HEADER(sys/endian.h, [ |
632 |
SYSDEFINES="$SYSDEFINES"' -DHAVE_SYS_ENDIAN_H' |
633 |
]) |
634 |
AC_CHECK_HEADER(machine/endian.h, [ |
635 |
SYSDEFINES="$SYSDEFINES"' -DHAVE_MACHINE_ENDIAN_H' |
636 |
]) |
637 |
AC_CHECK_HEADER(sys/isa_defs.h, [ |
638 |
SYSDEFINES="$SYSDEFINES"' -DHAVE_SYS_ISA_DEFS_H' |
639 |
]) |
640 |
|
628 |
AC_CHECK_HEADERS(unistd.h sys/socket.h winsock.h winsock2.h WS2tcpip.h) |
641 |
AC_CHECK_HEADERS(unistd.h sys/socket.h winsock.h winsock2.h WS2tcpip.h) |
629 |
|
642 |
|
630 |
dnl Check SAR |
643 |
dnl Check SAR |
631 |
-- snes9x-1.5-src/port.h |
644 |
++ snes9x-1.5-src/port.h |
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 |
350 |
#else |
363 |
# define MSB_FIRST |
351 |
#define MSB_FIRST |
364 |
# endif |
352 |
#endif |
365 |
#elif defined(WORDS_LITTLENDIAN) |
353 |
|
366 |
# define LSB_FIRST |
|
|
367 |
#elif defined(WORDS_BIGENDIAN) |
368 |
# define MSB_FIRST |
369 |
#else |
370 |
# if defined(__i386__) || defined(__i486__) || defined(__i586__) || \ |
371 |
defined(__WIN32__) || defined(__alpha__) || defined(__x86_64__) |
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 |
380 |
#endif |
381 |
|
354 |
#ifdef __sun |
382 |
#ifdef __sun |