This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Do not use __ptr_t


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")


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]