From: Ivan Maidanski Date: Mon, 27 May 2019 19:58:41 +0000 (+0300) Subject: Define STATIC macro to static by default X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82f3056e1adc333c4a4e38ed76680c3ab50d0ab6;p=gc Define STATIC macro to static by default This is reduce number of internal symbols exposed outside GC. * include/private/gcconfig.h [!STATIC] (STATIC): Define to empty only if GC_ASSERTIONS (regardless of NO_DEBUGGING); update comment. --- diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index ed70984d..15d74d26 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -3246,8 +3246,8 @@ EXTERN_C_BEGIN #endif #ifndef STATIC -# ifndef NO_DEBUGGING -# define STATIC /* ignore to aid profiling and possibly debugging */ +# ifdef GC_ASSERTIONS +# define STATIC /* ignore to aid debugging (or profiling) */ # else # define STATIC static # endif