]> granicus.if.org Git - gc/commit
Use standalone private macro to guard against ptr_t redefinition
authorIvan Maidanski <ivmai@mail.ru>
Wed, 14 Nov 2018 07:49:27 +0000 (10:49 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 14 Nov 2018 07:51:46 +0000 (10:51 +0300)
commit208846413a70a2a92979e8a87de28b6ac93b806a
tree397b9446ed8e6c52469490c9fc5a1f7e9eb5f440
parent4f837f7a7a9f6d82939f85fa754f7b0001ee5f8f
Use standalone private macro to guard against ptr_t redefinition
(code refactoring)

* include/private/gc_priv.h (ptr_t): Define only if PTR_T_DEFINED is
not defined (previously).
* include/private/gcconfig.h (ptr_t): Likewise.
* include/private/gc_priv.h (PTR_T_DEFINED): Define macro.
* include/private/gcconfig.h (PTR_T_DEFINED): Likewise.
* include/private/gcconfig.h (ptr_t): Change type to char*; remove
void comments.
* include/private/gcconfig.h: Include stddef.h only if sony_news is
not defined (like in gc_priv.h).
include/private/gc_priv.h
include/private/gcconfig.h