Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

basetypes.h

Go to the documentation of this file.
00001 /***************************************************************************
00002    basetypes.h  -  OS specific includes and defines for standard int types
00003                              -------------------
00004     begin                : Sun Jun 15 2003
00005     copyright            : (C) 2003 by Reality Rift Studios
00006     email                : mattias@realityrift.com
00007  ***************************************************************************
00008 
00009  The contents of this file are subject to the Mozilla Public License Version
00010  1.1 (the "License"); you may not use this file except in compliance with
00011  the License. You may obtain a copy of the License at 
00012  http://www.mozilla.org/MPL/
00013 
00014  Software distributed under the License is distributed on an "AS IS" basis,
00015  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00016  for the specific language governing rights and limitations under the
00017  License.
00018 
00019  The Original Code is the NeoEngine, basetypes.h
00020 
00021  The Initial Developer of the Original Code is Mattias Jansson.
00022  Portions created by Mattias Jansson are Copyright (C) 2003
00023  Reality Rift Studios. All Rights Reserved.
00024 
00025  ***************************************************************************/
00026 
00027 #ifndef __NEBASETYPES_H
00028 #define __NEBASETYPES_H
00029 
00030 
00037 #if defined( WIN32 )
00038 
00039 #  if defined( _MSC_VER )
00040 
00041      // MSVC++ specific
00042 
00043      typedef unsigned __int64 uint64_t;
00044      typedef __int64          int64_t;
00045   
00046      typedef unsigned int     uint32_t;
00047      typedef int              int32_t;
00048 
00049      typedef unsigned short   uint16_t;
00050      typedef short            int16_t;
00051 
00052      typedef unsigned char    uint8_t;
00053      typedef char             int8_t;
00054 
00055 #  elif defined( __MINGW32__ )
00056 
00057      // MinGW (Dev-C++) specific
00058 
00059 #    include <stdint.h>
00060 
00061 #  else
00062 #    error "Unsupported Win32 environment"
00063 #  endif
00064 
00065 #endif // WIN32
00066 
00067 
00068 #if defined( POSIX )
00069 
00070 #  if defined( LINUX )
00071 
00072 #    include <stdint.h>
00073 
00074 #  elif defined(FREEBSD)
00075 
00076 #    include <sys/stdint.h>
00077 
00078 #  else
00079 #    error "Unsupported POSIX target"
00080 #  endif
00081 
00082 #endif
00083 
00084 
00085 #if defined( __APPLE__ )
00086 
00087    // MacOS X specific
00088 
00089 #  include <stdint.h>
00090 
00091 #endif // __APPLE__
00092 
00093 
00094 #endif
00095 

Generated on Wed Jan 21 14:21:06 2004 for NeoEngine by doxygen 1.3.5