Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

common.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                                   common.h
00003                              -------------------
00004     begin                : Mon Jan 14 2002
00005     copyright            : (C) 2002 by Christian Hoenig & Gunter Ohrner
00006     email                : pdepp@CustomCDROM.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00024 #ifndef COMMON_H_FLAG
00025 #define COMMON_H_FLAG
00026 
00027 // include config.h if available
00028 #ifdef HAVE_CONFIG_H
00029 # include <config.h>
00030 #endif
00031 
00033 #define _BSD_SOURCE     1
00034 
00035 #define _XOPEN_SOURCE 500
00036 
00037 #define true            1
00038 
00039 #define false           0
00040 
00041 #define E_SUCCESS       0
00042 
00043 #define E_FAILURE      -1
00044 
00045 
00047 #ifndef HAVE_FUNC_ATTRIBUTE
00048 # define __attribute__(a)
00049 #endif
00050 
00051 
00054 #ifdef HAVE_STRSIGNAL
00055 # define _GNU_SOURCE
00056 # define __EXTENSIONS__
00057 # include <string.h>
00058 //# undef _GNU_SOURCE
00059 //# undef __EXTENSIONS__
00060 #endif
00061 
00062 
00071 #ifdef HAVE_BROKEN_STDARG_H_SOLARIS
00072 #define _VA_LIST
00073 #endif
00074 #include <stdio.h>
00075 #ifdef HAVE_BROKEN_STDARG_H_SOLARIS
00076 #undef _VA_LIST
00077 #endif
00078 
00079 #endif

Generated on Fri Jan 25 22:40:30 2002 for PDepp Webserver by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001