Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

base.h

00001 /***************************************************************************
00002                  base.h  -  Base defines for windowing toolkit
00003                              -------------------
00004     begin                : Sun Nov 17 2002
00005     copyright            : (C) 2002 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, NeoWTK, base.h
00020 
00021  The Initial Developer of the Original Code is Mattias Jansson.
00022  Portions created by Mattias Jansson are Copyright (C) 2002
00023  Reality Rift Studios. All Rights Reserved.
00024 
00025  ***************************************************************************/
00026 
00027 #ifndef __NEOWTKBASE_H
00028 #define __NEOWTKBASE_H
00029 
00030 
00031 #if defined(NEOWTK_INTERNALS) && defined(HAVE_CONFIG_H)
00032 #  include "buildconfig.h"
00033 #endif
00034 
00035 #ifndef NOGDI
00036 #  define NOGDI
00037 #endif
00038 
00039 #include <neoengine/base.h>
00040 
00041 
00042 #define NEOWTKVERSION_MAJOR             0
00043 #define NEOWTKVERSION_MINOR             7
00044 #define NEOWTKVERSION_REVISION          0
00045 
00046 #define NEOWTKVERSIONSTRING             "0.7.0"
00047 
00048 
00049 #ifdef WIN32
00050 
00051 #  ifdef BUILD_STATIC
00052 #    define NEOWTK_API
00053 #    define NEOWTKEXPIMP_TEMPLATE
00054 #  else
00055 #    ifdef NEOWTK_EXPORTS
00056 #      define NEOWTK_API __declspec(dllexport)
00057 #      define NEOWTKEXPIMP_TEMPLATE
00058 #    else
00059        //disable warnings on non-standard extension bullshit
00060 #      pragma warning( disable : 4231 )
00061 #      define NEOWTK_API __declspec(dllimport)
00062 #      define NEOWTKEXPIMP_TEMPLATE extern
00063 #    endif
00064 #  endif
00065 
00066 #  define NEOWTK_ATTRIBUTE_PACKED
00067 
00068 #  ifdef __cplusplus
00069     // Instantiate class std::vector<classname> and std::list<classname>
00070     // This does not create an object. It only forces the generation of all
00071     // of the members of the class.
00072     // It exports them from the DLL and imports them into the .exe file.
00073 
00074     //disable warnings on non-standard extension bullshit
00075 #    ifdef BUILD_STATIC
00076 #      define WtkUDTVectorEXPIMP(classname)
00077 #    else
00078 #      pragma warning( disable : 4231 )
00079 #      if ( _MSC_VER >= 1300 )
00080 #        define WtkUDTVectorEXPIMP(classname) NEOWTKEXPIMP_TEMPLATE template class NEOWTK_API std::allocator< classname >; NEOWTKEXPIMP_TEMPLATE template class NEOWTK_API std::vector< classname >
00081 #      elif !defined( __MINGW32__ )
00082 #        define WtkUDTVectorEXPIMP(classname) NEOWTKEXPIMP_TEMPLATE template class NEOWTK_API std::vector< classname >
00083 #      else
00084 #        define WtkUDTVectorEXPIMP(classname)
00085 #      endif
00086 #    endif
00087 #  endif
00088 
00089 #elif defined(POSIX) || defined(__APPLE__)
00090 
00091 #  include <stdint.h>
00092 #  define NEOWTK_API
00093 #  define NEOWTK_ATTRIBUTE_PACKED __attribute__((packed))
00094 
00095 #else
00096 #  error "Platform uninplemented"
00097 #endif
00098 
00099 
00100 #endif

Generated on Wed Jan 21 14:21:20 2004 for NeoWTK by doxygen 1.3.5