00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __libutilxx__common_H__
00010 #define __libutilxx__common_H__
00011
00012 #ifdef HAVE_CONFIG_H
00013 #include <config.h>
00014 #endif
00015
00016 #if !(defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L)
00017 #error Must add -std=c++0x or -std=c++11 to CXXFLAGS to enable C++ 2011 support.
00018 #endif
00019
00020 #ifndef _GNU_SOURCE
00021 #define _GNU_SOURCE
00022 #endif
00023
00024 #ifndef __USE_BSD
00025 #define __USE_BSD
00026 #endif
00027 #include <netinet/ip.h>
00028
00029 #ifndef __FAVOR_BSD
00030 #define __FAVOR_BSD
00031 #endif
00032 #include <netinet/udp.h>
00033
00034 #define __STDC_FORMAT_MACROS
00035 #include <inttypes.h>
00036
00037 #include <values.h>
00038 #include <assert.h>
00039
00040 #if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
00041 #define LIBUTIL_API_DEPRECATED __attribute__((__deprecated__))
00042 #else
00043 #define LIBUTIL_API_DEPRECATED
00044 #endif
00045
00046
00047
00048
00049
00050 #endif
00051
00052
00053
00054