ucommon
commoncpp/config.h
00001 // Copyright (C) 2009-2014 David Sugar, Tycho Softworks.
00002 //
00003 // This program is free software; you can redistribute it and/or modify
00004 // it under the terms of the GNU General Public License as published by
00005 // the Free Software Foundation; either version 2 of the License, or
00006 // (at your option) any later version.
00007 //
00008 // This program is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 // GNU General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public License
00014 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015 //
00016 // As a special exception, you may use this file as part of a free software
00017 // library without restriction.  Specifically, if other files instantiate
00018 // templates or use macros or inline functions from this file, or you compile
00019 // this file and link it with other files to produce an executable, this
00020 // file does not by itself cause the resulting executable to be covered by
00021 // the GNU General Public License.  This exception does not however
00022 // invalidate any other reasons why the executable file might be covered by
00023 // the GNU General Public License.
00024 //
00025 // This exception applies only to the code released under the name GNU
00026 // Common C++.  If you copy code from other releases into a copy of GNU
00027 // Common C++, as the General Public License permits, the exception does
00028 // not apply to the code that you add in this way.  To avoid misleading
00029 // anyone as to the status of such modified files, you must delete
00030 // this exception notice from them.
00031 //
00032 // If you write modifications of your own for GNU Common C++, it is your choice
00033 // whether to permit this exception to apply to your modifications.
00034 // If you do not wish that, delete this exception notice.
00035 //
00036 
00037 #ifndef COMMONCPP_CONFIG_H_
00038 #define COMMONCPP_CONFIG_H_
00039 
00040 #ifndef _UCOMMON_UCOMMON_H_
00041 #include <ucommon/ucommon.h>
00042 #endif
00043 
00044 #ifdef  __EXPORT
00045 #undef  __EXPORT
00046 #endif
00047 
00048 #define __EXPORT    __SHARED
00049 
00050 // #include <streambuf>
00051 #include <iostream>
00052 
00053 #define COMMONCPP_HEADERS
00054 #define CCXX_NAMESPACES
00055 #define COMMONCPP_NAMESPACE ost
00056 #define NAMESPACE_COMMONCPP namespace ost {
00057 #define TIMEOUT_INF ucommon::Timer::inf
00058 
00059 #ifdef  _UCOMMON_EXTENDED_
00060 #define CCXX_EXCEPTIONS
00061 #endif
00062 
00063 #ifdef  AF_INET6
00064 #define CCXX_IPV6
00065 #endif
00066 
00067 #ifdef  AF_INET
00068 #define CCXX_IPV4
00069 #endif
00070 
00071 typedef pthread_t   cctid_t;
00072 typedef int8_t      int8;
00073 typedef uint8_t     uint8;
00074 typedef int16_t     int16;
00075 typedef uint16_t    uint16;
00076 typedef int32_t     int32;
00077 typedef uint32_t    uint32;
00078 typedef int64_t     int64;
00079 typedef uint64_t    uint64;
00080 
00081 #if !defined(_MSWINDOWS_) && !defined(__QNX__)
00082 
00083 #ifndef stricmp
00084 #define stricmp(x,y) String::case_compare(x,y)
00085 #endif
00086 
00087 #ifndef strnicmp
00088 #define strnicmp(x,y,z) String::case_compare(x,y,z)
00089 #endif
00090 
00091 #endif
00092 
00093 
00094 
00095 #endif