Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowing compilation with -std=99 #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions nob.h
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,11 @@ bool nob_proc_wait(Nob_Proc proc)
}

if (WIFSIGNALED(wstatus)) {
#ifndef NOB_REMOVE_NON_STANDARD
nob_log(NOB_ERROR, "command process was terminated by %s", strsignal(WTERMSIG(wstatus)));
#else
nob_log(NOB_ERROR, "command process was terminated (info missing in non standard mode)");
#endif
return false;
}
}
Expand Down Expand Up @@ -1141,6 +1145,8 @@ bool nob_write_entire_file(const char *path, const void *data, size_t size)
return result;
}


#ifndef NOB_REMOVE_NON_STANDARD
Nob_File_Type nob_get_file_type(const char *path)
{
#ifdef _WIN32
Expand Down Expand Up @@ -1232,6 +1238,7 @@ bool nob_copy_directory_recursively(const char *src_path, const char *dst_path)
nob_da_free(children);
return result;
}
#endif //NOB_REMOVE_NON_STANDARD

char *nob_temp_strdup(const char *cstr)
{
Expand Down