diff -r 000000000000 -r c9bf2537109a ait/os/baseinc.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ait/os/baseinc.h Tue Nov 12 11:31:34 2013 +0100 @@ -0,0 +1,263 @@ +/* + * baseinc.h + * + * Standard header include file to get the most common system definitions + * + * Autor: Oliver Maurhart, + * + * Copyright (C) 2013 AIT Austrian Institute of Technology + * AIT Austrian Institute of Technology GmbH + * Donau-City-Strasse 1 | 1220 Vienna | Austria + * http://www.ait.ac.at + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +#ifndef __BASEINC_H +#define __BASEINC_H + +// get definitions found by cmake +#include "config.h" + +// ------------------------------------------------------------ +// C++ + +// C++11 standard and boost stuff +#ifdef __cplusplus +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include + +# ifdef HAVE_BOOST_LIB +# include +# include +# include +# include +# include +# include +# include +# include +# endif + +#endif + + +// ------------------------------------------------------------ +// check defs (headers only) + +// standard C headers +#ifdef HAVE_STDIO_H +# include +#endif + +#ifdef HAVE_STDDEF_H +# include +#endif + +#ifdef HAVE_STDLIB_H +# include +#endif + +#ifdef HAVE_INTTYPES_H +# include +#endif + +#ifdef HAVE_MEMORY_H +# include +#endif + +#ifdef HAVE_STRING_H +# include +#endif + +#ifdef HAVE_UNISTD_H +# include +#endif + + +// stdbool.h +#ifdef HAVE_STDBOOL_H +# include +#endif + + +// endian.h +#ifdef HAVE_ENDIAN_H +# include +#endif + + +// time system headers +#ifdef HAVE_SYS_TIME_H +# include +#endif + +#ifdef HAVE_SYS_TIMES_H +# include +#endif + +#ifdef HAVE_TIME_H +# include +#endif + + +// files +#ifdef HAVE_FCNTL_H +# include +#endif + +#ifdef HAVE_SYS_STAT_H +# include +#endif + + +// some math +#ifdef HAVE_MATH_H +# include +#endif + + +// networking +#ifdef HAVE_NETDB_H +# include +#endif + +#ifdef HAVE_IFADDRS_H +# include +#endif + +#ifdef HAVE_NETINET_IN_H +# include +#endif + +#ifdef HAVE_ARPA_INET_H +# include +#endif + +#ifdef HAVE_SYS_SOCKET_H +# include +#endif + +#ifdef HAVE_SYS_UN_H +# include +#endif + + +// assert.h +#ifdef HAVE_ASSERT_H +# include +#endif + + +// signal.h +#ifdef HAVE_SIGNAL_H +# include +#endif + + +// sys/uio.h +#ifdef HAVE_SYS_UIO_H +# include +#endif + + +// syslog.h +#ifdef HAVE_SYSLOG_H +# include +#endif + + +// errno.h +#ifdef HAVE_ERRNO_H +# include +#endif + + +// limits.h +#ifdef HAVE_LIMITS_H +# include +#endif + + +// sys/mman.h +#ifdef HAVE_SYS_MMAN_H +# include +#endif + + +// dirent.h +#ifdef HAVE_DIRENT_H +# include +#endif + + +// fuse.h +#ifdef HAVE_FUSE_H +# ifndef FUSE_USE_VERSION +# define FUSE_USE_VERSION 30 +# endif +# include +#endif + + +// ------------------------------------------------------------ +// Windows + +#ifdef __WIN32__ +# include +#endif + + +// ------------------------------------------------------------ +// Linux + +#ifdef __linux__ +# include +#endif + + +// ------------------------------------------------------------ +// common macros + +#if defined(__GNUC__) || defined(__GNUCPP__) +# define UNUSED __attribute__((unused)) +#else +# define UNUSED +#endif + + + +#endif +