caudio/cAudio/include/cAudioPlatform.h

67 lines
1.7 KiB
C

// Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
// This file is part of the "cAudio Engine"
// For conditions of distribution and use, see copyright notice in cAudio.h
#pragma once
#if !defined( CAUDIO_PLATFORM_WIN )
# if defined( WIN32 ) || defined( _WINDOWS ) || defined(_WIN32)
# define CAUDIO_PLATFORM_WIN
# endif
#endif
#if !defined( CAUDIO_PLATFORM_MAC ) || !defined( CAUDIO_PLATFORM_IPHONE )
# if defined( __APPLE__ ) || defined( __APPLE_CC__ ) || defined( MACOSX )
# if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30000 || __IPHONE_OS_VERSION_MIN_REQUIRED >= 30000
# define CAUDIO_PLATFORM_IPHONE
# else
# define CAUDIO_PLATFORM_MAC
# endif
# endif
#endif
#if !defined( CAUDIO_PLATFORM_LINUX )
# if defined(_UNIX) || defined(__linux)
# define CAUDIO_PLATFORM_LINUX
# endif
#endif
#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
#ifndef CAUDIO_COMPILER_MINGW
# if defined(__MINGW32__)
# define CAUDIO_COMPILER_MINGW
# endif
#endif
#ifdef CAUDIO_PLATFORM_WIN
#ifndef NOMINMAX
#define NOMINMAX
#endif
#define WIN32_LEAN_AND_MEAN
#define _CRT_SECURE_NO_WARNINGS 1
#if defined(_DEBUG) && !defined(DEBUG)
#define DEBUG _DEBUG
#endif
#ifndef DEBUG
#define _SECURE_SCL 0
#define _HAS_ITERATOR_DEBUGGING 0
#endif
#include <windows.h> //Basic windows includes
#endif