[m-rev.] diff: Avoid SC_32 name collision in generated C code.

Peter Wang novalazy at gmail.com
Wed Apr 30 14:23:28 AEST 2025


On Wed, 30 Apr 2025 13:14:05 +1000 "Zoltan Somogyi" <zoltan.somogyi at runbox.com> wrote:
> 
> 
> On Wed, 30 Apr 2025 11:54:04 +1000, Peter Wang <novalazy at gmail.com> wrote:
> > On AIX, /usr/include/sys/mac.h contains the macros:
> > 
> >     #define SC_32 32
> >     #define SM_32 8
> 
> What is the job of that header file? Surely not supporting AIX on Apple Macs.

Something about "security labels".

> Any why do we care what it defines?

We don't care.

> A grep for mac.h in a workspace
> returned no matches, not even in test_bitset.m. What causes the
> above macros to be visible in test_bitset.c?

It turns out including <pthread.h> pulls it in indirectly.

Peter


More information about the reviews mailing list