From 4b252fc55e874c7b589854c22c663af0e8d5c9c1 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 27 May 2012 23:08:20 +0200 Subject: [PATCH] now autodetects the current platform. --- libmaxsi/include/libmaxsi/platform.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libmaxsi/include/libmaxsi/platform.h b/libmaxsi/include/libmaxsi/platform.h index 0a5cec82..6397d473 100644 --- a/libmaxsi/include/libmaxsi/platform.h +++ b/libmaxsi/include/libmaxsi/platform.h @@ -1,6 +1,6 @@ /****************************************************************************** - COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2011. + COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2011, 2012. This file is part of LibMaxsi. @@ -20,11 +20,17 @@ platform.h Defines platform specific stuff. -******************************************************************************/ +*******************************************************************************/ #ifndef LIBMAXSI_PLATFORM_H #define LIBMAXSI_PLATFORM_H + #if !defined(PLATFORM_X64) && defined(__x86_64__) + #define PLATFORM_X64 + #elif !defined(PLATFORM_X86) && defined(__i386__) + #define PLATFORM_X86 + #endif + // Detect which platform we are compiling to and declare some useful macros. #ifdef PLATFORM_X86 #define CPU X86