DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2006 Torus Knot Software Ltd Also see acknowledgements in Readme.html This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, or go to http://www.gnu.org/copyleft/lesser.txt. You may alternatively use this source under the terms of a specific version of the OGRE Unrestricted License provided you have obtained such a license from Torus Knot Software Ltd. ----------------------------------------------------------------------------- */ #ifndef __Platform_H_ #define __Platform_H_ #include "OgreConfig.h" namespace Ogre { /* Initial platform/compiler-related stuff to set. */ #define OGRE_PLATFORM_WIN32 1 #define OGRE_PLATFORM_LINUX 2 #define OGRE_PLATFORM_APPLE 3 #define OGRE_COMPILER_MSVC 1 #define OGRE_COMPILER_GNUC 2 #define OGRE_COMPILER_BORL 3 #define OGRE_ENDIAN_LITTLE 1 #define OGRE_ENDIAN_BIG 2 #define OGRE_ARCHITECTURE_32 1 #define OGRE_ARCHITECTURE_64 2 /* Finds the compiler type and version. */ #if defined( _MSC_VER ) # define OGRE_COMPILER OGRE_COMPILER_MSVC # define OGRE_COMP_VER _MSC_VER #elif defined( __GNUC__ ) # define OGRE_COMPILER OGRE_COMPILER_GNUC # define OGRE_COMP_VER (((__GNUC__)*100) + \ (__GNUC_MINOR__*10) + \ __GNUC_PATCHLEVEL__) #elif defined( __BORLANDC__ ) # define OGRE_COMPILER OGRE_COMPILER_BORL # define OGRE_COMP_VER __BCPLUSPLUS__ #else # pragma error "No known compiler. Abort! Abort!" #endif /* See if we can use __forceinline or if we need to use __inline instead */ #if OGRE_COMPILER == OGRE_COMPILER_MSVC # if OGRE_COMP_VER >= 1200 # define FORCEINLINE __forceinline # endif #elif defined(__MINGW32__) # if !defined(FORCEINLINE) # define FORCEINLINE __inline # endif #else # define FORCEINLINE __inline #endif /* Finds the current platform */ #if defined( __WIN32__ ) || defined( _WIN32 ) # define OGRE_PLATFORM OGRE_PLATFORM_WIN32 #elif defined( __APPLE_CC__) # define OGRE_PLATFORM OGRE_PLATFORM_APPLE #else # define OGRE_PLATFORM OGRE_PLATFORM_LINUX #endif /* Find the arch type */ #if defined(__x86_64__) || defined(_M_X64) || defined(__powerpc64__) || defined(__alpha__) || defined(__ia64__) || defined(__s390__) || defined(__s390x__) # define OGRE_ARCH_TYPE OGRE_ARCHITECTURE_64 #else # define OGRE_ARCH_TYPE OGRE_ARCHITECTURE_32 #endif // For generating compiler warnings - should work on any compiler // As a side note, if you start your message with 'Warning: ', the MSVC // IDE actually does catch a warning :) #define OGRE_QUOTE_INPLACE(x) # x #define OGRE_QUOTE(x) OGRE_QUOTE_INPLACE(x) #define OGRE_WARN( x ) message( __FILE__ "(" QUOTE( __LINE__ ) ") : " x "\n" ) //---------------------------------------------------------------------------- // Windows Settings #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 // If we're not including this from a client build, specify that the stuff // should get exported. Otherwise, import it. # if defined( OGRE_STATIC_LIB ) // Linux compilers don't have symbol import/export directives. # define _OgreExport # define _OgrePrivate # else # if defined( OGRE_NONCLIENT_BUILD ) # define _OgreExport __declspec( dllexport ) # else # if defined( __MINGW32__ ) # define _OgreExport # else # define _OgreExport __declspec( dllimport ) # endif # endif # define _OgrePrivate # endif // Win32 compilers use _DEBUG for specifying debug builds. # ifdef _DEBUG # define OGRE_DEBUG_MODE 1 # else # define OGRE_DEBUG_MODE 0 # endif // Disable unicode support on MingW at the moment, poorly supported in stdlibc++ // STLPORT fixes this though so allow if found // MinGW C++ Toolkit supports unicode and sets the define __MINGW32_TOOLKIT_UNICODE__ in _mingw.h #if defined( __MINGW32__ ) && !defined(_STLPORT_VERSION) # include<_mingw.h> # if defined(__MINGW32_TOOLBOX_UNICODE__) # define OGRE_UNICODE_SUPPORT 1 # else # define OGRE_UNICODE_SUPPORT 0 # endif #else # define OGRE_UNICODE_SUPPORT 1 #endif #endif //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- // Linux/Apple Settings #if OGRE_PLATFORM == OGRE_PLATFORM_LINUX || OGRE_PLATFORM == OGRE_PLATFORM_APPLE // Enable GCC symbol visibility # if defined( OGRE_GCC_VISIBILITY ) # define _OgreExport __attribute__ ((visibility("default"))) # define _OgrePrivate __attribute__ ((visibility("hidden"))) # else # define _OgreExport # define _OgrePrivate # endif // A quick define to overcome different names for the same function # define stricmp strcasecmp // Unlike the Win32 compilers, Linux compilers seem to use DEBUG for when // specifying a debug build. // (??? this is wrong, on Linux debug builds aren't marked in any way unless // you mark it yourself any way you like it -- zap ???) # ifdef DEBUG # define OGRE_DEBUG_MODE 1 # else # define OGRE_DEBUG_MODE 0 # endif #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE #define OGRE_PLATFORM_LIB "OgrePlatform.bundle" #else //OGRE_PLATFORM_LINUX #define OGRE_PLATFORM_LIB "libOgrePlatform.so" #endif // Always enable unicode support for the moment // Perhaps disable in old versions of gcc if necessary #define OGRE_UNICODE_SUPPORT 1 #endif //For apple, we always have a custom config.h file #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE # include "config.h" #endif //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- // Endian Settings // check for BIG_ENDIAN config flag, set OGRE_ENDIAN correctly #ifdef OGRE_CONFIG_BIG_ENDIAN # define OGRE_ENDIAN OGRE_ENDIAN_BIG #else # define OGRE_ENDIAN OGRE_ENDIAN_LITTLE #endif // Integer formats of fixed bit width typedef unsigned int uint32; typedef unsigned short uint16; typedef unsigned char uint8; } #endif
OgrePlatform.h
Page URL
File URL
Prev
129/217
Next
Download
( 6 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.