Hi.
If I compile using -std=cXX for example -std=c11, nob fails to compile because it's using some POSIX extentions (e.g. clock_gettime, CLOCK_MONOTONIC, nanosleep, etc.).
The fix is to define _GNU_SOURCE before including headers:
#ifdef __GNUC__
#define _GNU_SOURCE
#endif
Hi.
If I compile using
-std=cXXfor example-std=c11, nob fails to compile because it's using some POSIX extentions (e.g.clock_gettime,CLOCK_MONOTONIC,nanosleep, etc.).The fix is to define
_GNU_SOURCEbefore including headers: