/*
  Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012, 2013, 2014 Tadashi Watanabe <wac@umiushi.org>

  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
#ifndef SKK_GCC_PRECOMPILE_H
#define SKK_GCC_PRECOMPILE_H

// C++

// C
#include <cstddef>
#include <cstdlib>
#include <cstdio>
#include <cstdarg>
#include <cstring>
#include <cmath>
#include <cfloat>
#include <climits>
#include <ctime>
#include <cassert>

// BSD / Cygwin / Linux
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <fcntl.h>
#include <syslog.h>
#include <unistd.h>
#include <setjmp.h>
#include <errno.h>
#include <time.h>
#include <signal.h>

// pthread
#ifdef YASKKSERV_CONFIG_HAVE_PTHREAD
#include <pthread.h>
#endif  // YASKKSERV_CONFIG_HAVE_PTHREAD

// Socket
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>

#ifdef YASKKSERV_CONFIG_HEADER_HAVE_ICONV_H
#include <iconv.h>
#endif  // YASKKSERV_CONFIG_HEADER_HAVE_ICONV_H

#ifdef YASKKSERV_CONFIG_MACRO_HAVE_SYMBOL_RESOLV_RETRANS_RETRY
#include <resolv.h>
#endif  // YASKKSERV_CONFIG_MACRO_HAVE_SYMBOL_RESOLV_RETRANS_RETRY

#ifdef YASKKSERV_CONFIG_HEADER_HAVE_GNUTLS_OPENSSL
#include <gnutls/gnutls.h>
#include <gnutls/openssl.h>
#endif  // YASKKSERV_CONFIG_HEADER_HAVE_GNUTLS_OPENSSL
#ifdef YASKKSERV_CONFIG_HEADER_HAVE_OPENSSL
#include <openssl/crypto.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/md5.h>
#endif  // YASKKSERV_CONFIG_HEADER_HAVE_OPENSSL

#endif // SKK_GCC_PRECOMPILE_H
