Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions nob.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@
#define NOBDEF
#endif /* NOBDEF */

#if defined(__unix__) && !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200809L
#endif

#ifndef NOB_ASSERT
#include <assert.h>
#define NOB_ASSERT assert
Expand Down Expand Up @@ -798,10 +802,10 @@ NOBDEF char *nob_temp_running_executable_path(void);

#ifndef nob_cc
# if _WIN32
# if defined(__GNUC__)
# define nob_cc(cmd) nob_cmd_append(cmd, "cc")
# elif defined(__clang__)
# if defined(__clang__)
# define nob_cc(cmd) nob_cmd_append(cmd, "clang")
# elif defined(__GNUC__)
# define nob_cc(cmd) nob_cmd_append(cmd, "cc")
# elif defined(_MSC_VER)
# define nob_cc(cmd) nob_cmd_append(cmd, "cl.exe")
# elif defined(__TINYC__)
Expand Down
Loading