log4cplus 2.0.8
macosx.h
Go to the documentation of this file.
1// -*- C++ -*-
2// Module: Log4CPLUS
3// File: config-macosx.h
4// Created: 7/2003
5// Author: Christopher R. Bailey
6//
7//
8// Copyright 2003-2017 Christopher R. Bailey
9//
10// Licensed under the Apache License, Version 2.0 (the "License");
11// you may not use this file except in compliance with the License.
12// You may obtain a copy of the License at
13//
14// http://www.apache.org/licenses/LICENSE-2.0
15//
16// Unless required by applicable law or agreed to in writing, software
17// distributed under the License is distributed on an "AS IS" BASIS,
18// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19// See the License for the specific language governing permissions and
20// limitations under the License.
21
24#ifndef LOG4CPLUS_CONFIG_MACOSX_HEADER_
25#define LOG4CPLUS_CONFIG_MACOSX_HEADER_
26
27#if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
28#pragma once
29#endif
30
31#if (defined(__APPLE__) || (defined(__MWERKS__) && defined(__MACOS__)))
32
33#define LOG4CPLUS_HAVE_GETTIMEOFDAY 1
34#define socklen_t int
35
36#endif // MACOSX
37#endif // LOG4CPLUS_CONFIG_MACOSX_HEADER_