conundrum: _C99_SOURCE vs. sigset
stefan at fafoe.narf.at
Fri Aug 4 06:56:34 UTC 2006
On Thu, Aug 03, 2006 at 06:17:23PM -0400, Mikhail Teterin wrote:
> четвер 03 серпень 2006 17:38, Stefan Farfeleder написав:
> > Try -D_POSIX_C_SOURCE=200112.
> Thanks, I will.
> > The macro _C99_SOURCE is for pure C99 code and _ANSI_SOURCE for C90
> > code. Both don't include the <pthread.h> header.
> They do -- it gets included from iostream, even when I define one of those.
No, what I meant was that <pthread.h> isn't defined by neither C90 nor
C99 but by POSIX. Defining _C99_SOURCE or _ANSI_SOURCE hides additional
POSIX/BSD identifiers in shared headers which is a bad idea if you want
to include <pthread.h>; as you've seen it leads to errors.
More information about the freebsd-standards