2010-02-09 06:58:27 +01:00
|
|
|
#ifndef CAUDIOPLATFORM_H_INCLUDED
|
|
|
|
#define CAUDIOPLATFORM_H_INCLUDED
|
|
|
|
|
2010-02-27 23:17:03 +01:00
|
|
|
#if !defined( CAUDIO_PLATFORM_WIN )
|
2010-02-09 07:08:46 +01:00
|
|
|
# if defined( WIN32 ) || defined( _WINDOWS ) || defined(_WIN32)
|
|
|
|
# define CAUDIO_PLATFORM_WIN
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2010-02-27 23:17:03 +01:00
|
|
|
#if !defined( CAUDIO_PLATFORM_MAC ) || !defined( CAUDIO_PLATFORM_IPHONE )
|
2010-02-28 00:24:11 +01:00
|
|
|
# if defined( __APPLE__ ) || defined( __APPLE_CC__ ) || defined( MACOSX )
|
2010-02-27 23:17:03 +01:00
|
|
|
# if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30000 || __IPHONE_OS_VERSION_MIN_REQUIRED >= 30000
|
|
|
|
# define CAUDIO_PLATFORM_IPHONE
|
|
|
|
# else
|
|
|
|
# define CAUDIO_PLATFORM_MAC
|
|
|
|
# endif
|
2010-02-09 07:08:46 +01:00
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2010-02-27 23:17:03 +01:00
|
|
|
#if !defined( CAUDIO_PLATFORM_LINUX )
|
2010-02-09 07:08:46 +01:00
|
|
|
# if defined(_UNIX) || defined(__linux)
|
|
|
|
# define CAUDIO_PLATFORM_LINUX
|
|
|
|
# endif
|
2010-02-09 06:58:27 +01:00
|
|
|
#endif
|
|
|
|
|
2010-03-14 23:58:03 +01:00
|
|
|
#ifndef CAUDIO_COMPILIER_GCC
|
|
|
|
# if defined(__GNUC__) || defined(__GCCXML__)
|
|
|
|
# define CAUDIO_COMPILIER_GCC
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef CAUDIO_COMPILIER_MSVC
|
|
|
|
# if defined(_MSC_VER)
|
|
|
|
# if _MSC_VER >= 1400
|
|
|
|
# define CAUDIO_COMPILIER_MSVC
|
|
|
|
# else
|
|
|
|
# error This version of the MSVC compilier is not supported
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2010-02-09 06:58:27 +01:00
|
|
|
#endif //! CAUDIOPLATFORM_H_INCLUDED
|