00001 /* C O M M O N . H 00002 * BRL-CAD 00003 * 00004 * Copyright (c) 2004-2006 United States Government as represented by 00005 * the U.S. Army Research Laboratory. 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License 00009 * as published by the Free Software Foundation; either version 2.1 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this file; see the file named COPYING for more 00019 * information. 00020 */ 00021 /** @addtogroup fixme */ 00022 /*@{*/ 00023 /** @file common.h 00024 *@brief 00025 * Header file for the BRL-CAD common definitions. 00026 * 00027 * This header wraps the system-specific encapsulation of 00028 * brlcad_config.h and removes need to conditionally include 00029 * brlcad_config.h everywhere based on HAVE_CONFIG_H. The common 00030 * definitions are symbols common to the platform being built that 00031 * are either detected via configure or hand crafted, as is the case 00032 * for the win32 platform. 00033 * 00034 * @author 00035 * Christopher Sean Morrison 00036 * 00037 * @par Source 00038 * The U. S. Army Research Laboratory 00039 * Aberdeen Proving Ground, Maryland 21005-5068 USA 00040 * 00041 * $Header: /cvsroot/brlcad/brlcad/include/common.h,v 14.11 2006/09/18 05:24:07 lbutler Exp $ 00042 */ 00043 00044 #ifndef __COMMON_H__ 00045 #define __COMMON_H__ 00046 00047 /* include the venerable config.h file. use a pregenerated one for 00048 * windows when we cannot autogenerate it easily. do not include 00049 * config.h if this file has been installed. (public header files 00050 * should not use config defines) 00051 */ 00052 #ifdef HAVE_CONFIG_H 00053 # ifdef _WIN32 00054 # include "config_win.h" 00055 # else 00056 # include "brlcad_config.h" 00057 # endif 00058 #endif /* _WIN32 */ 00059 00060 /* provide declaration markers for header externals */ 00061 #ifdef __cplusplus 00062 # define __BEGIN_DECLS extern "C" { 00063 # define __END_DECLS } 00064 #else 00065 # define __BEGIN_DECLS 00066 # define __END_DECLS 00067 #endif 00068 00069 #endif /* __COMMON_H__ */ 00070 /*@}*/ 00071 /* 00072 * Local Variables: 00073 * mode: C 00074 * tab-width: 8 00075 * c-basic-offset: 4 00076 * indent-tabs-mode: t 00077 * End: 00078 * ex: shiftwidth=4 tabstop=8 00079 */ 00080