/usr/include/davix/utils/davix_config.hpp is in davix-dev 0.5.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | /*
* This File is part of Davix, The IO library for HTTP based protocols
* Copyright (C) CERN 2013
* Author: Adrien Devresse <adrien.devresse@cern.ch>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* 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 DAVIX_CONFIG
#define DAVIX_CONFIG
#include <functional>
#ifndef __DAVIX_INSIDE__
#error "Only davix.hpp should be included."
#endif
//
// export
//
#ifndef DAVIX_EXPORT
#define DAVIX_EXPORT __attribute__((visibility("default")))
#endif
//
// detect GCC
//
#if (defined(__GNUC__) || defined(__GNUG__)) && !(defined(__clang__) || defined(__INTEL_COMPILER))
# ifndef __DAVIX_COMPILER_GCC
# define __DAVIX_COMPILER_GCC
# endif
#endif
//
// detect CXX11 support
//
#if ( (__cplusplus > 199711L) \
|| (defined (DAVIX_FORCE_CXX11)) \
|| (defined __GXX_EXPERIMENTAL_CXX0X__) )
# ifndef __DAVIX_CX11_SUPPORT
# define __DAVIX_CX11_SUPPORT
# endif
#endif
//
// detect TR1 support
//
#if ( (defined DAVIX_FORCE_TR1) \
|| (defined __DAVIX_COMPILER_GCC) \
|| (defined HAVE_TR1_SUPPORT))
# ifndef __DAVIX_TR1_SUPPORT
# define __DAVIX_TR1_SUPPORT
#endif
#endif
//
// include tr1 namespace
//
#if (!(defined __DAVIX_CX11_SUPPORT) \
&& (defined __DAVIX_TR1_SUPPORT))
# include <tr1/functional>
# include <tr1/memory>
namespace std{
using namespace std::tr1;
}
#endif
//
// enable STD_FUNCTION_DECL
//
#if ((defined __DAVIX_CX11_SUPPORT) \
|| (defined __DAVIX_TR1_SUPPORT) \
|| (defined HAVE_STD_FUNCTION))
# ifndef __DAVIX_HAS_STD_FUNCTION
# define __DAVIX_HAS_STD_FUNCTION
# endif
#endif
//
// davix preproc facilities
//
#undef DAVIX_C_DECL_BEGIN
#undef DAVIX_C_DECL_END
#ifdef __cplusplus
#define DAVIX_C_DECL_BEGIN \
extern "C" {
#define DAVIX_C_DECL_END }
#else
#define DAVIX_C_DECL_BEGIN // void
#define DAVIX_C_DECL_END // void
#endif
//
// compat 32 bits
#if (( __WORDSIZE == 32 ) \
|| ( SIZE_MAX == (4294967295U) )) \
&& !(defined __DAVIX_COMPAT_32) \
&& !(defined __NO_DAVIX_COMPAT_32)
#define __DAVIX_COMPAT_32
#endif
//
// deprecated
#undef DEPRECATED
#ifdef __GNUC__
#define DEPRECATED(func) func __attribute__ ((deprecated))
#else
#define DEPRECATED(func) func
#endif
#endif // DAVIX_TYPES_HPP
|