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.

159 lines
3.2 KiB

  1. // -*- C++ -*-
  2. // Module: Log4CPLUS
  3. // File: windowsh-inc.h
  4. // Created: 4/2010
  5. // Author: Vaclav Zeman
  6. //
  7. //
  8. // Copyright (C) 2010-2012, Vaclav Zeman. All rights reserved.
  9. //
  10. // Redistribution and use in source and binary forms, with or without modifica-
  11. // tion, are permitted provided that the following conditions are met:
  12. //
  13. // 1. Redistributions of source code must retain the above copyright notice,
  14. // this list of conditions and the following disclaimer.
  15. //
  16. // 2. Redistributions in binary form must reproduce the above copyright notice,
  17. // this list of conditions and the following disclaimer in the documentation
  18. // and/or other materials provided with the distribution.
  19. //
  20. // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  21. // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  22. // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  23. // APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  24. // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
  25. // DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  26. // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  27. // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  29. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. // NOTE: This file is a fragment intentionally left without include guards.
  31. #if defined (_WIN32)
  32. #undef WIN32_LEAN_AND_MEAN
  33. #define WIN32_LEAN_AND_MEAN
  34. #undef NOGDICAPMASKS
  35. #define NOGDICAPMASKS
  36. #undef NOVIRTUALKEYCODES
  37. #define NOVIRTUALKEYCODES
  38. #undef NOWINMESSAGES
  39. #define NOWINMESSAGES
  40. #undef NOWINSTYLES
  41. #define NOWINSTYLES
  42. #undef NOSYSMETRICS
  43. #define NOSYSMETRICS
  44. #undef NOMENUS
  45. #define NOMENUS
  46. #undef NOICONS
  47. #define NOICONS
  48. #undef NOKEYSTATES
  49. #define NOKEYSTATES
  50. #undef NOSYSCOMMANDS
  51. #define NOSYSCOMMANDS
  52. #undef NORASTEROPS
  53. #define NORASTEROPS
  54. #undef NOSHOWWINDOW
  55. #define NOSHOWWINDOW
  56. #undef NOATOM
  57. #define NOATOM
  58. #undef NOCLIPBOARD
  59. #define NOCLIPBOARD
  60. #undef NOCOLOR
  61. #define NOCOLOR
  62. #undef NOCTLMGR
  63. #define NOCTLMGR
  64. #undef NODRAWTEXT
  65. #define NODRAWTEXT
  66. #undef NOGDI
  67. #define NOGDI
  68. #undef NOKERNEL
  69. #define NOKERNEL
  70. #undef NOUSER
  71. #define NOUSER
  72. #undef NONLS
  73. #define NONLS
  74. #undef NOMB
  75. #define NOMB
  76. #undef NOMEMMGR
  77. #define NOMEMMGR
  78. #undef NOMETAFILE
  79. #define NOMETAFILE
  80. #undef NOMINMAX
  81. #define NOMINMAX
  82. #undef NOMSG
  83. #define NOMSG
  84. #undef NOOPENFILE
  85. #define NOOPENFILE
  86. #undef NOSCROLL
  87. #define NOSCROLL
  88. #undef NOSERVICE
  89. #define NOSERVICE
  90. #undef NOSOUND
  91. #define NOSOUND
  92. #undef NOTEXTMETRIC
  93. #define NOTEXTMETRIC
  94. #undef NOWH
  95. #define NOWH
  96. #undef NOWINOFFSETS
  97. #define NOWINOFFSETS
  98. #undef NOCOMM
  99. #define NOCOMM
  100. #undef NOKANJI
  101. #define NOKANJI
  102. #undef NOHELP
  103. #define NOHELP
  104. #undef NOPROFILER
  105. #define NOPROFILER
  106. #undef NODEFERWINDOWPOS
  107. #define NODEFERWINDOWPOS
  108. #undef NOMCX
  109. #define NOMCX
  110. #include <winsock2.h>
  111. #include <ws2tcpip.h>
  112. #include <windows.h>
  113. #if defined (LOG4CPLUS_HAVE_INTRIN_H)
  114. #include <intrin.h>
  115. #endif
  116. #endif
  117. // NOTE: This file is a fragment intentionally left without include guards.