1 // -*- C++ -*-
2 // Module:  Log4CPLUS
3 // File:    cygwin-win32.h
4 // Created: 7/2011
5 // Author:  Vaclav Zeman
6 //
7 //  Copyright (C) 2011, Vaclav Zeman. All rights reserved.
8 //
9 //  Redistribution and use in source and binary forms, with or without modifica-
10 //  tion, are permitted provided that the following conditions are met:
11 //
12 //  1. Redistributions of  source code must  retain the above copyright  notice,
13 //     this list of conditions and the following disclaimer.
14 //
15 //  2. Redistributions in binary form must reproduce the above copyright notice,
16 //     this list of conditions and the following disclaimer in the documentation
17 //     and/or other materials provided with the distribution.
18 //
19 //  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
20 //  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21 //  FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
22 //  APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
23 //  INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
24 //  DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
25 //  OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
26 //  ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
27 //  (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
28 //  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 
30 #if ! defined (DCMTK_LOG4CPLUS_CONFIG_CYGWIN_WIN32_H)
31 #define DCMTK_LOG4CPLUS_CONFIG_CYGWIN_WIN32_H
32 
33 #include "dcmtk/oflog/config.h"
34 
35 #if defined (DCMTK_LOG4CPLUS_HAVE_PRAGMA_ONCE)
36 #pragma once
37 #endif
38 
39 #if defined (__CYGWIN__)
40 
41 #if ! defined (DCMTK_INSIDE_LOG4CPLUS)
42 #  error "This header must not be be used outside log4cplus' implementation files."
43 #endif
44 
45 
46 namespace dcmtk {
47 namespace log4cplus { namespace cygwin {
48 
49 unsigned long get_current_win32_thread_id ();
50 
51 } } // namespace log4cplus { namespace cygwin {
52 } // end namespace dcmtk
53 
54 
55 #endif // defined (__CYGWIN__)
56 #endif // DCMTK_LOG4CPLUS_CONFIG_CYGWIN_WIN32_H
57