/****************************************************************************** libprozilla - a download accelerator library Copyright (C) 2001 Kalum Somaratna This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ******************************************************************************/ /* Common #includes and #defines. */ /* $Id$ */ #ifndef COMMON_H #define COMMON_H #if HAVE_CONFIG_H # include #endif #if HAVE_STDIO_H # include #endif #if STDC_HEADERS # if HAVE_STDLIB_H # include # endif # include #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #else # if HAVE_STRINGS_H # include # endif #endif #if HAVE_UNISTD_H # include #endif #if HAVE_CTYPE_H # include #endif #if HAVE_ERRNO_H # include #endif #if HAVE_SYS_TYPES_H # include #endif #if HAVE_FCNTL_H # include #endif #if HAVE_SYS_SOCKET_H # include #endif #if HAVE_NETINET_IN_H # include #endif #include #ifdef __FreeBSD__ #include #include #else #include #endif #if HAVE_ARPA_INET_H # include #endif #if HAVE_NETDB_H # include #endif #if TIME_WITH_SYS_TIME # include # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #if HAVE_SYS_STAT_H # include #endif #if HAVE_ASSERT_H # include #endif #if HAVE_PWD_H # include #endif #ifdef HAVE_LIMITS_H #include #endif #if HAVE_PTHREAD_H # include #endif /* If we don't have vsnprintf() try to use __vsnprintf(). */ #if !defined(HAVE_VSNPRINTF) && defined(HAVE___VSNPRINTF) # undef vsnprintf # define vsnprintf __vsnprintf # define HAVE_VSNPRINTF #endif /* If we don't have snprintf() try to use __snprintf(). */ #if !defined(HAVE_SNPRINTF) && defined(HAVE___SNPRINTF) # undef snprintf # define snprintf __snprintf # define HAVE_SNPRINTF #endif typedef int boolean; #ifndef FALSE # define FALSE (0) #endif #ifndef TRUE # define TRUE (!FALSE) #endif #ifndef NO # define NO FALSE #endif #ifndef YES # define YES TRUE #endif #ifdef HAVE_LOCALE_H #include #endif /* Gettext */ #include "gettext.h" #define _(String) dgettext (PACKAGE, String) /* Gettext */ #endif /* COMMON_H */