UCommon
config.h
1// Copyright (C) 2009-2014 David Sugar, Tycho Softworks.
2// Copyright (C) 2015 Cherokees of Idaho.
3//
4// This program is free software; you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation; either version 2 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU Lesser General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
16//
17// As a special exception, you may use this file as part of a free software
18// library without restriction. Specifically, if other files instantiate
19// templates or use macros or inline functions from this file, or you compile
20// this file and link it with other files to produce an executable, this
21// file does not by itself cause the resulting executable to be covered by
22// the GNU General Public License. This exception does not however
23// invalidate any other reasons why the executable file might be covered by
24// the GNU General Public License.
25//
26// This exception applies only to the code released under the name GNU
27// Common C++. If you copy code from other releases into a copy of GNU
28// Common C++, as the General Public License permits, the exception does
29// not apply to the code that you add in this way. To avoid misleading
30// anyone as to the status of such modified files, you must delete
31// this exception notice from them.
32//
33// If you write modifications of your own for GNU Common C++, it is your choice
34// whether to permit this exception to apply to your modifications.
35// If you do not wish that, delete this exception notice.
36//
37
38#ifndef COMMONCPP_CONFIG_H_
39#define COMMONCPP_CONFIG_H_
40
41#ifndef _UCOMMON_UCOMMON_H_
42#include <ucommon/ucommon.h>
43#endif
44
45#ifdef __EXPORT
46#undef __EXPORT
47#endif
48
49#define __EXPORT __SHARED
50
51// #include <streambuf>
52#include <iostream>
53
54#define COMMONCPP_HEADERS
55#define CCXX_NAMESPACES
56#define COMMONCPP_NAMESPACE ost
57#define NAMESPACE_COMMONCPP namespace ost {
58#define TIMEOUT_INF ucommon::Timer::inf
59
60#ifndef UCOMMON_SYSRUNTIME
61#define CCXX_EXCEPTIONS
62#endif
63
64#ifdef AF_INET6
65#define CCXX_IPV6
66#endif
67
68#ifdef AF_INET
69#define CCXX_IPV4
70#endif
71
72typedef pthread_t cctid_t;
73typedef int8_t int8;
74typedef uint8_t uint8;
75typedef int16_t int16;
76typedef uint16_t uint16;
77typedef int32_t int32;
78typedef uint32_t uint32;
79typedef int64_t int64;
80typedef uint64_t uint64;
81
82#endif
Top level include file for the GNU uCommon C++ core library.