Mercurial > sdl-ios-xcode
comparison include/SDL_byteorder.h @ 969:cfb9518670f4
Date: Wed, 13 Oct 2004 17:00:58 -0500
From: Jonathan Atkins
Subject: [Fwd: Re: SDL_image on Solaris x86 help please]
apparently __i386__ is insufficient for Suns C Workshop compilers...
so a sun x86 user told me about this...and tested his own solution.
I think it wouldn't be a bad idea to add __i386 to the SDL_byteorder.h
so that it works for that compiler.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 12 Nov 2004 22:09:17 +0000 |
parents | b8d311d90021 |
children | 0f9d463bf09c |
comparison
equal
deleted
inserted
replaced
968:4675910b0b7b | 969:cfb9518670f4 |
---|---|
37 /* Pardon the mess, I'm trying to determine the endianness of this host. | 37 /* Pardon the mess, I'm trying to determine the endianness of this host. |
38 I'm doing it by preprocessor defines rather than some sort of configure | 38 I'm doing it by preprocessor defines rather than some sort of configure |
39 script so that application code can use this too. The "right" way would | 39 script so that application code can use this too. The "right" way would |
40 be to dynamically generate this file on install, but that's a lot of work. | 40 be to dynamically generate this file on install, but that's a lot of work. |
41 */ | 41 */ |
42 #if defined(__i386__) || defined(__ia64__) || defined(WIN32) || \ | 42 #if (defined(__i386__) || defined(__i386)) || \ |
43 defined(__ia64__) || defined(WIN32) || \ | |
43 (defined(__alpha__) || defined(__alpha)) || \ | 44 (defined(__alpha__) || defined(__alpha)) || \ |
44 defined(__arm__) || \ | 45 defined(__arm__) || \ |
45 (defined(__mips__) && defined(__MIPSEL__)) || \ | 46 (defined(__mips__) && defined(__MIPSEL__)) || \ |
46 defined(__SYMBIAN32__) || \ | 47 defined(__SYMBIAN32__) || \ |
47 defined(__x86_64__) || \ | 48 defined(__x86_64__) || \ |