1 /* G-Cows - scripting language for creation of web sites 2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Andrea Sozzi 3 4 This file is part of G-Cows. 5 6 G-Cows is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; version 2 of the License. 9 10 G-Cows is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; see the file COPYING. If not, write to 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 Boston, MA 02111-1307, USA. */ 19 20 21 #ifndef LIB_COMMON_H 22 #define LIB_COMMON_H 1 23 24 #ifdef __cplusplus 25 # define BEGIN_C_DECLS extern "C" { 26 # define END_C_DECLS } 27 #else /* !__cplusplus */ 28 # define BEGIN_C_DECLS 29 # define END_C_DECLS 30 #endif /* __cplusplus */ 31 32 #if HAVE_CONFIG_H 33 # include "config.h" 34 # include "../config.h" 35 #endif 36 37 #ifndef EXIT_SUCCESS 38 # define EXIT_SUCCESS 0 39 # define EXIT_FAILURE 1 40 #endif 41 42 #include <string> 43 44 extern char *program_name; 45 46 #endif // ! LIB_COMMON_H 47