I set out to make my program C99, and so I compile it with the -std=c99
gcc flag. To make this work, because usleep()
is deprecated, I have to use nanosleep()
, which is sorta kinda not really part of C99, and requires you to define _POSIX_C_SOURCE >= 199309L
.
Now, I am confused about how this affects my program and the compilation, and if it can have weird effects on different distros.
Mainly, my question is if I can leave it like that and trust it to work ok most of the time and not have any weird side-effects, or should I remove it and compile the program as C11?