Main Page | Class List | File List | Class Members

E:/Projekte/Open Source/Unwritten/Unwritten C++/projects/Library/include/Unwritten.hpp

00001 /*
00002  *  Unwritten - A distrubuted logging engine
00003  *  Copyright © 2005 by "The Unwritten Team"
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Lesser General Public
00007  *  License as published by the Free Software Foundation; either
00008  *  version 2.1 of the License, or (at your option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Lesser General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Lesser General Public
00016  *  License along with this library; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  **/
00019 
00020 #if !defined(_UNWRITTEN_HPP_)
00021         #define _UNWRITTEN_HPP_
00022 
00023         //
00024         // pre-define the UNWRITTEN_API macro with no value
00025         //
00026         #define UNWRITTEN_API
00027 
00028         //
00029         // we use this macro to show that a class is abstract
00030         //
00031         #define abstract
00032 
00033         //
00034         // we try to compile this library on a windows system (not CygWin system)
00035         //
00036         #if !defined( __CYGWIN32 ) && ( defined( _WINDOWS ) || defined( WIN16 ) || defined( WIN32 ) || defined( WIN64 ) )
00037 
00038                 #if defined( _MSC_VER ) && _MSC_VER > 1200
00039 
00040                         #undef UNWRITTEN_API
00041 
00042                         #if defined( _DLL )
00043                                 #define UNWRITTEN_API __declspec( dllexport )
00044                         #else
00045                                 #define UNWRITTEN_API __declspec( dllimport )
00046                         #endif
00047 
00048                         //
00049                         // disable some unneeded warnings for this compiler
00050                         //
00051                         #pragma warning( disable: 4251 ) // 'XXX' : class 'XXX' needs to have dll-interface to be used by clients of class 'XXX'
00052 
00053                 #endif
00054 
00055         //
00056         // we try to compile this library on a linux system
00057         //
00058         #elif defined( __gnu_linux__ )
00059 
00060         //
00061         // we try to compile this library on a Sun Solaris system with a SPARC processor
00062         //
00063         #elif defined( sparc )
00064 
00065                 #error The library was not tested for Sun Solaris systems
00066 
00067         //
00068         // we try to compile this library on a SGI IRIX/MIPS system
00069         //
00070         #elif defined( sgi )
00071 
00072                 #error The library was not tested for SGI IRIX/MIPS systems
00073 
00074         //
00075         // we try to compile this library on a windows system with CygWin
00076         //
00077         #elif defined( __CYGWIN32 )
00078 
00079                 #error The library was not tested with the CygWin compiler
00080 
00081         //
00082         // unkown compiler and platform, just print an error message
00083         //
00084         #else
00085 
00086                 #error This library was only proofed to be compatible on Linux and Windows systems
00087 
00088         #endif
00089 
00090 #endif

Generated on Sun Feb 27 19:49:00 2005 for Unwritten - Independet Logging Library by  doxygen 1.4.1