Merge pull request #1 from DrItanium/ia64

Added Itanium Support and fixed some missing platform checks
This commit is contained in:
Yamagi 2012-12-30 09:03:11 -08:00
commit cb3d6ac56a
2 changed files with 9 additions and 1 deletions

View file

@ -33,7 +33,7 @@ endif
# Refuse all other platforms as a firewall against PEBKAC
# (You'll need some #ifdef for your unsupported plattform!)
ifeq ($(findstring $(ARCH), i386 x86_64 sparc64),)
ifeq ($(findstring $(ARCH), i386 x86_64 sparc64 ia64),)
$(error arch $(ARCH) is currently not supported)
endif

View file

@ -66,6 +66,10 @@
*/
#if defined(__FreeBSD__)
#define OS "FreeBSD"
#elif defined(__APPLE__)
#define OS "MacOS X"
#elif defined(__OpenBSD__)
#define OS "OpenBSD"
#elif defined(__linux__)
#define OS "Linux"
#elif defined(_WIN32)
@ -78,6 +82,10 @@
#define ARCH "i386"
#elif defined(__x86_64__)
#define ARCH "amd64"
#elif defined(__sparc__)
#define ARCH "sparc64"
#elif defined(__ia64__)
#define ARCH "ia64"
#else
#define ARCH "unknown"
#endif