[89] | 1 | /* Licensed to the Apache Software Foundation (ASF) under one or more
|
---|
| 2 | * contributor license agreements. See the NOTICE file distributed with
|
---|
| 3 | * this work for additional information regarding copyright ownership.
|
---|
| 4 | * The ASF licenses this file to You under the Apache License, Version 2.0
|
---|
| 5 | * (the "License"); you may not use this file except in compliance with
|
---|
| 6 | * the License. You may obtain a copy of the License at
|
---|
| 7 | *
|
---|
| 8 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 9 | *
|
---|
| 10 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
| 13 | * See the License for the specific language governing permissions and
|
---|
| 14 | * limitations under the License.
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | #ifndef LOG4CXX_LOG4CXX_H
|
---|
| 18 | #define LOG4CXX_LOG4CXX_H
|
---|
| 19 |
|
---|
| 20 | /* GENERATED FILE WARNING! DO NOT EDIT log4cxx.h
|
---|
| 21 | *
|
---|
| 22 | * Edit log4cxx.hw instead
|
---|
| 23 | *
|
---|
| 24 | */
|
---|
| 25 |
|
---|
| 26 | #define LOG4CXX_LOGCHAR_IS_UTF8 0
|
---|
| 27 | #if LOG4CXX_LOGCHAR_IS_UTF8
|
---|
| 28 | #define LOG4CXX_LOGCHAR_IS_WCHAR 0
|
---|
| 29 | #else
|
---|
| 30 | #define LOG4CXX_LOGCHAR_IS_WCHAR 1
|
---|
| 31 | #endif
|
---|
| 32 | #define LOG4CXX_LOGCHAR_IS_UNICHAR 0
|
---|
| 33 |
|
---|
| 34 | #define LOG4CXX_CHAR_API 1
|
---|
| 35 | #define LOG4CXX_WCHAR_T_API 1
|
---|
| 36 | #define LOG4CXX_UNICHAR_API 0
|
---|
| 37 | #define LOG4CXX_CFSTRING_API 0
|
---|
| 38 |
|
---|
| 39 | #if defined(_MSC_VER)
|
---|
| 40 | typedef __int64 log4cxx_int64_t;
|
---|
| 41 | #if _MSC_VER < 1300
|
---|
| 42 | #define LOG4CXX_USE_GLOBAL_SCOPE_TEMPLATE 1
|
---|
| 43 | #define LOG4CXX_LOGSTREAM_ADD_NOP 1
|
---|
| 44 | #endif
|
---|
| 45 | #elif defined(__BORLANDC__)
|
---|
| 46 | typedef __int64 log4cxx_int64_t;
|
---|
| 47 | #else
|
---|
| 48 | typedef long long log4cxx_int64_t;
|
---|
| 49 | #endif
|
---|
| 50 |
|
---|
| 51 | typedef log4cxx_int64_t log4cxx_time_t;
|
---|
| 52 | typedef int log4cxx_status_t;
|
---|
| 53 | typedef unsigned int log4cxx_uint32_t;
|
---|
| 54 |
|
---|
| 55 | // definitions used when using static library
|
---|
| 56 | #if defined(LOG4CXX_STATIC)
|
---|
| 57 | #define LOG4CXX_EXPORT
|
---|
| 58 | // definitions used when building DLL
|
---|
| 59 | #elif defined(LOG4CXX)
|
---|
| 60 | #define LOG4CXX_EXPORT __declspec(dllexport)
|
---|
| 61 | #else
|
---|
| 62 | // definitions used when using DLL
|
---|
| 63 | #define LOG4CXX_EXPORT __declspec(dllimport)
|
---|
| 64 | #endif
|
---|
| 65 |
|
---|
| 66 |
|
---|
| 67 | //
|
---|
| 68 | // pointer and list definition macros when building DLL using VC
|
---|
| 69 | //
|
---|
| 70 | #if defined(_MSC_VER) && !defined(LOG4CXX_STATIC) && defined(LOG4CXX)
|
---|
| 71 | #define LOG4CXX_PTR_DEF(T) \
|
---|
| 72 | template class LOG4CXX_EXPORT log4cxx::helpers::ObjectPtrT<T>; \
|
---|
| 73 | typedef log4cxx::helpers::ObjectPtrT<T> T##Ptr
|
---|
| 74 | #define LOG4CXX_LIST_DEF(N, T) \
|
---|
| 75 | template class LOG4CXX_EXPORT std::allocator<T>; \
|
---|
| 76 | template class LOG4CXX_EXPORT std::vector<T>; \
|
---|
| 77 | typedef std::vector<T> N
|
---|
| 78 | //
|
---|
| 79 | // pointer and list definition macros when linking with DLL using VC
|
---|
| 80 | //
|
---|
| 81 | #elif defined(_MSC_VER) && !defined(LOG4CXX_STATIC)
|
---|
| 82 | #define LOG4CXX_PTR_DEF(T) \
|
---|
| 83 | extern template class LOG4CXX_EXPORT log4cxx::helpers::ObjectPtrT<T>; \
|
---|
| 84 | typedef log4cxx::helpers::ObjectPtrT<T> T##Ptr
|
---|
| 85 | #define LOG4CXX_LIST_DEF(N, T) \
|
---|
| 86 | extern template class LOG4CXX_EXPORT std::allocator<T>; \
|
---|
| 87 | extern template class LOG4CXX_EXPORT std::vector<T>; \
|
---|
| 88 | typedef std::vector<T> N
|
---|
| 89 | //
|
---|
| 90 | // pointer and list definition macros for all other cases
|
---|
| 91 | //
|
---|
| 92 | #else
|
---|
| 93 | #define LOG4CXX_PTR_DEF(T) typedef log4cxx::helpers::ObjectPtrT<T> T##Ptr
|
---|
| 94 | #define LOG4CXX_LIST_DEF(N, T) typedef std::vector<T> N
|
---|
| 95 | #endif
|
---|
| 96 |
|
---|
| 97 |
|
---|
| 98 | #endif
|
---|
| 99 |
|
---|