]> granicus.if.org Git - gc/commit
Enable gc.h inclusion by client without implicit include windows.h (Win32)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 8 May 2015 06:26:36 +0000 (09:26 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 11 May 2015 15:59:49 +0000 (18:59 +0300)
commit90dd15959a370cc0a6499731d5216b1cc9b4ac44
treec8361a1fc1314e8a2047068a7998e3fc1c049c80
parentff923443350baa49b3910030f68e3f53d0ba9cef
Enable gc.h inclusion by client without implicit include windows.h (Win32)

* doc/README.macros (GC_DONT_INCLUDE_WINDOWS_H): Document.
* include/gc.h: Include windows.h unless GC_DONT_INCLUDE_WINDOWS_H
(only for Win32).
* include/gc.h (DECLSPEC_NORETURN): Define to __declspec(noreturn) by
default if windows.h not included (instead of empty).
* include/gc.h (GC_WIN32_SIZE_T): Define to DWORD (or unsigned long)
unless _WIN64 (instead of GC_uintptr_t which is unsigned int for
32-bit target).
* include/gc.h (GC_DllMain, GC_CreateThread, GC_ExitThread): If WINAPI
undefined (i.e., if windows.h not included by or prior to gc.h) then
declare the prototype using built-in C types instead of Windows types.
doc/README.macros
include/gc.h