00001 /* -*-c++-*- */ 00002 /* 00003 * $Id: CgiDefs.h.in,v 1.6 2001/09/02 19:53:17 sbooth Exp $ 00004 * 00005 * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 Stephen F. Booth 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 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser 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 library; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 */ 00021 00022 #ifndef _CGIDEFS_H_ 00023 #define _CGIDEFS_H_ 1 00024 00032 // Include information from configure 00033 #if HAVE_CONFIG_H 00034 # include "config.h" 00035 #endif 00036 00044 // Win32-specific setup 00045 #ifdef WIN32 00046 00047 // always use namespaces 00048 # define CGICC_USE_NAMESPACES 1 00049 00050 // export library symbols 00051 # ifdef CGICC_EXPORTS 00052 # define CGICC_API __declspec(dllexport) 00053 # else 00054 # define CGICC_API __declspec(dllimport) 00055 # endif 00056 00057 # define HOST "Win32" 00058 # define VERSION "3.2.1" 00059 00060 #else 00061 # define CGICC_USE_NAMESPACES 1 00062 # define CGICC_API 00063 #endif /* WIN32 */ 00064 00065 // Handle namespaces 00066 #if CGICC_USE_NAMESPACES 00067 # define CGICC_BEGIN_NAMESPACE namespace cgicc { 00068 # define CGICC_END_NAMESPACE } 00069 # define CGICCNS cgicc:: 00070 # define STDNS std:: 00071 #else 00072 # define CGICC_BEGIN_NAMESPACE 00073 # define CGICC_END_NAMESPACE 00074 # define CGICCNS 00075 # define STDNS 00076 #endif /* CGICC_USE_NAMESPACES */ 00077 00078 #endif /* ! _CGIDEFS_H_ */