Skip to content
Advertisement

why am i not able to declare sigset_t with std=c99?

If i compile the below program with std=c99, i get an error, but the program compiles fine without the c99 flag. Why?

JavaScript

Advertisement

Answer

Because sigset_t is not part of <signal.h> in standard C and you requested strict standards compatibility with -std=c99. That is, a strictly standard C program can do:

JavaScript

and expect it to work.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement