Consistently define WIN32_LEAN_AND_MEAN/NOSERVICE before include windows.h
authorIvan Maidanski <ivmai@mail.ru>
Wed, 20 Jun 2018 07:10:17 +0000 (10:10 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 20 Jun 2018 07:10:17 +0000 (10:10 +0300)
commit0d41e2f1e09014b9c0bb3f4cf68732e09558f0eb
treecfea60f47fa76c14b0f218a190b6278544a2b98b
parentab8086362d46b86987b65a59583e8ab37c7f4a30
Consistently define WIN32_LEAN_AND_MEAN/NOSERVICE before include windows.h
(code refactoring)

Note: these macros are not (and should not be) defined in the public
headers (gc.h).

* cord/tests/de.c [WIN32] (WIN32_LEAN_AND_MEAN, NOSERVICE): Define
macro before include windows.h.
* cord/tests/de_win.c (WIN32_LEAN_AND_MEAN, NOSERVICE): Likewise.
* extra/msvc_dbg.c (WIN32_LEAN_AND_MEAN, NOSERVICE): Likewise.
* tests/initsecondarythread.c [!GC_PTHREADS] (WIN32_LEAN_AND_MEAN,
NOSERVICE): Likewise.
* tests/subthread_create.c [!GC_PTHREADS] (WIN32_LEAN_AND_MEAN,
NOSERVICE): Likewise.
* tests/test.c [MSWIN32 || MSWINCE] (WIN32_LEAN_AND_MEAN,
NOSERVICE): Likewise.
* tests/test_cpp.cc [MSWIN32] (WIN32_LEAN_AND_MEAN, NOSERVICE):
Likewise.
* tests/thread_leak_test.c [!GC_PTHREADS] (WIN32_LEAN_AND_MEAN,
NOSERVICE): Likewise.
* tools/setjmp_t.c [MSWIN32 || MSWINCE || CYGWIN32]
(WIN32_LEAN_AND_MEAN, NOSERVICE): Likewise.
* cord/tests/de_win.c: Replace include "windows.h" to
include <windows.h>.
cord/tests/de.c
cord/tests/de_win.c
extra/msvc_dbg.c
tests/initsecondarythread.c
tests/subthread_create.c
tests/test.c
tests/test_cpp.cc
tests/thread_leak_test.c
tools/setjmp_t.c