# config-win32.h

Go to the documentation of this file.

    00001 // Module:  Log4CPLUS
    00002 // File:    config-win32.h
    00003 // Created: 4/2003
    00004 // Author:  Tad E. Smith
    00005 //
    00006 //
    00007 // Copyright (C) Tad E. Smith  All rights reserved.
    00008 //
    00009 // This software is published under the terms of the Apache Software
    00010 // License version 1.1, a copy of which has been included with this
    00011 // distribution in the LICENSE.APL file.
    00012 //
    00013
    00016 #ifndef LOG4CPLUS_CONFIG_WIN32_HEADER_
    00017 #define LOG4CPLUS_CONFIG_WIN32_HEADER_
    00018
    00019 #ifdef _WIN32
    00020
    00021 /* Define if you have the ftime function.  */
    00022 #define HAVE_FTIME 1
    00023
    00024 /* Define if you have the <sstream> header file.  */
    00025 #define HAVE_SSTREAM 1
    00026
    00027 #ifdef LOG4CPLUS_STATIC
    00028 #  define LOG4CPLUS_EXPORT
    00029 #else
    00030 #  ifdef LOG4CPLUS_BUILD_DLL
    00031 #    define LOG4CPLUS_EXPORT __declspec(dllexport)
    00032 #  else
    00033 #    define LOG4CPLUS_EXPORT __declspec(dllimport)
    00034 #  endif
    00035 #endif
    00036
    00037 #ifndef LOG4CPLUS_SINGLE_THREADED
    00038 #  define LOG4CPLUS_USE_WIN32_THREADS
    00039 #endif
    00040
    00041 #if defined(_MSC_VER)
    00042   // Warning about: identifier was truncated to '255' characters in the debug information
    00043 #  pragma warning( disable : 4786 )
    00044   // Warning about: <type1> needs to have dll-interface to be used by clients of class <type2>
    00045 #  pragma warning( disable : 4251 )
    00046 #endif
    00047
    00048
    00049 #endif // _WIN32
    00050 #endif // LOG4CPLUS_CONFIG_WIN32_HEADER_
    00051