Do not use __ptr_t

Paul Eggert eggert@cs.ucla.edu
Tue Aug 8 16:39:00 GMT 2017


Zack Weinberg wrote:
> Macros can be deprecated using _Pragma("GCC message \"...\"").

Thanks, good to know. So, something like this instead:

/* This is not a typedef so 'const __ptr_t' does the right thing.  */
#define __ptr_t void * __glibc_macro_warning ("__ptr_t is deprecated")



More information about the Libc-alpha mailing list