00001 // COCONUT basic configuration -*- C++ -*- 00002 // 00003 // This file is automatically created by the doprepare script 00004 // Change only if you *really* know what you are doing! 00005 // 00006 // Copyright (C) 2001-2007 Hermann Schichl 00007 // 00008 // This file is part of the COCONUT API. This library 00009 // is free software; you can redistribute it and/or modify it under the 00010 // terms of the Library GNU General Public License as published by the 00011 // Free Software Foundation; either version 2, or (at your option) 00012 // any later version. 00013 00014 // This library is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // Library GNU General Public License for more details. 00018 00019 // As a special exception, you may use this file as part of a free software 00020 // library without restriction. Specifically, if other files instantiate 00021 // templates or use macros or inline functions from this file, or you compile 00022 // this file and link it with other files to produce an executable, this 00023 // file does not by itself cause the resulting executable to be covered by 00024 // the Library GNU General Public License. This exception does not however 00025 // invalidate any other reasons why the executable file might be covered by 00026 // the Library GNU General Public License. 00027 00030 #ifndef __COCONUT_CONFIG_H__ 00031 #define __COCONUT_CONFIG_H__ 00032 00033 #if (__GNUC__ < 3) 00034 00037 #define PURE_VIRTUAL { throw "Pure virtual function called!"; } 00038 #else 00039 #define PURE_VIRTUAL =0; 00040 #endif 00041 00042 #define INTERVAL_LIBRARY_FILIB 0 00043 #define INTERVAL_LIBRARY_BOOST 1 00044 00045 #define COCONUT_INTERVAL_LIBRARY INTERVAL_LIBRARY_FILIB 00046 00047 #define COCONUT_LINUX 1 00048 00049 #if defined(COCONUT_WINDOWS) 00050 #define __COCONUT_PRETTY_FUNCTION__ __FUNCTION__ 00051 #define _NAMESPACES 1 00052 #define __i386__ 00053 #define _CRT_SECURE_NO_DEPRECATE 00054 #pragma warning ( disable : 4267 4244 4800 4290 4996 4355 ) 00055 #else 00056 #define __COCONUT_PRETTY_FUNCTION__ __PRETTY_FUNCTION__ 00057 #endif 00058 00059 #endif // __COCONUT_CONFIG_H__