log4cplus
1.1.0
|
00001 // -*- C++ -*- 00002 // Module: Log4CPLUS 00003 // File: cygwin-win32.h 00004 // Created: 7/2011 00005 // Author: Vaclav Zeman 00006 // 00007 // Copyright (C) 2011, Vaclav Zeman. All rights reserved. 00008 // 00009 // Redistribution and use in source and binary forms, with or without modifica- 00010 // tion, are permitted provided that the following conditions are met: 00011 // 00012 // 1. Redistributions of source code must retain the above copyright notice, 00013 // this list of conditions and the following disclaimer. 00014 // 00015 // 2. Redistributions in binary form must reproduce the above copyright notice, 00016 // this list of conditions and the following disclaimer in the documentation 00017 // and/or other materials provided with the distribution. 00018 // 00019 // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, 00020 // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 00021 // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00022 // APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 00023 // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU- 00024 // DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 00025 // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 00026 // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00027 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 00028 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00029 00030 #if ! defined (LOG4CPLUS_CONFIG_CYGWIN_WIN32_H) 00031 #define LOG4CPLUS_CONFIG_CYGWIN_WIN32_H 00032 00033 #include <log4cplus/config.hxx> 00034 00035 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE) 00036 #pragma once 00037 #endif 00038 00039 #if defined (__CYGWIN__) 00040 00041 #if ! defined (INSIDE_LOG4CPLUS) 00042 # error "This header must not be be used outside log4cplus' implementation files." 00043 #endif 00044 00045 00046 namespace log4cplus { namespace cygwin { 00047 00048 unsigned long get_current_win32_thread_id (); 00049 00050 } } // namespace log4cplus { namespace cygwin { 00051 00052 00053 #endif // defined (__CYGWIN__) 00054 #endif // LOG4CPLUS_CONFIG_CYGWIN_WIN32_H