You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.0 KiB

  1. // -*- C++ -*-
  2. // Module: Log4CPLUS
  3. // File: cygwin-win32.h
  4. // Created: 7/2011
  5. // Author: Vaclav Zeman
  6. //
  7. // Copyright (C) 2011-2013, 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. #if ! defined (LOG4CPLUS_CONFIG_CYGWIN_WIN32_H)
  30. #define LOG4CPLUS_CONFIG_CYGWIN_WIN32_H
  31. #include <log4cplus/config.hxx>
  32. #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
  33. #pragma once
  34. #endif
  35. #if defined (__CYGWIN__)
  36. #if ! defined (INSIDE_LOG4CPLUS)
  37. # error "This header must not be be used outside log4cplus' implementation files."
  38. #endif
  39. namespace log4cplus { namespace cygwin {
  40. unsigned long get_current_win32_thread_id ();
  41. } } // namespace log4cplus { namespace cygwin {
  42. #endif // defined (__CYGWIN__)
  43. #endif // LOG4CPLUS_CONFIG_CYGWIN_WIN32_H