On Tue, Nov 06, 2018 at 08:11:03AM -0800, John Nemeth wrote: > On Nov 6, 3:07pm, co...@sdf.org wrote: > } > } I wanna do this, looks good? > > No. > > } Index: stdint.h > } =================================================================== > } RCS file: /cvsroot/src/sys/sys/stdint.h,v > } retrieving revision 1.7 > } diff -u -r1.7 stdint.h > } --- stdint.h 22 Apr 2013 21:26:48 -0000 1.7 > } +++ stdint.h 4 Nov 2018 09:35:54 -0000 > } @@ -35,54 +35,54 @@ > } #include <sys/cdefs.h> > } #include <machine/int_types.h> > } > } -#ifndef int8_t > } +#ifndef _BSD_INT8_T_ > } typedef __int8_t int8_t; > } -#define int8_t __int8_t > } +#define _BSD_INT8_T_ > } #endif > > What's going to define _BSD_INT8_T_ and friends? > > To me, this looks smells like some kind of gross hack to work around > broken software. > > [snip] > > }-- End of excerpt from co...@sdf.org
We are. it's a guard to prevent double type definition.