libutil++  1.9.3
 All Classes Functions Variables
common.h
1 /*
2 ** libutil++
3 ** $Id: common.h 1653 2016-02-28 19:54:59Z sella $
4 ** Copyright (c) 2011-2016 Digital Genesis, LLC. All Rights Reserved.
5 ** Released under the LGPL Version 2.1 License.
6 ** http://www.digitalgenesis.com
7 */
8 
9 #ifndef __libutilxx__common_H__
10 #define __libutilxx__common_H__
11 
12 #ifdef HAVE_CONFIG_H
13  #include <config.h>
14 #endif
15 
16 #if !(defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L)
17  #error Must add -std=c++0x or -std=c++11 to CXXFLAGS to enable C++ 2011 support.
18 #endif
19 
20 #ifndef _GNU_SOURCE
21  #define _GNU_SOURCE
22 #endif
23 
24 #ifndef __USE_BSD
25  #define __USE_BSD
26 #endif
27 #include <netinet/ip.h>
28 
29 #ifndef __FAVOR_BSD
30  #define __FAVOR_BSD
31 #endif
32 #include <netinet/udp.h>
33 
34 #define __STDC_FORMAT_MACROS
35 #include <inttypes.h>
36 
37 #include <values.h>
38 #include <assert.h>
39 
40 #if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41  #define LIBUTIL_API_DEPRECATED __attribute__((__deprecated__))
42 #else
43  #define LIBUTIL_API_DEPRECATED
44 #endif
45 
46 /* Example:
47 ** LIBUTIL_API_DEPRECATED int function(void);
48 */
49 
50 #endif
51 
52 /*
53 ** vim: noet ts=3 sw=3
54 */