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
7 changes: 6 additions & 1 deletion nob.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
# define _WINCON_
# include <windows.h>
# include <direct.h>
# include <io.h>
# include <shellapi.h>
#else
# ifdef __APPLE__
Expand Down Expand Up @@ -659,6 +660,8 @@ NOBDEF char *nob_temp_running_executable_path(void);
# define nob_cc(cmd) nob_cmd_append(cmd, "clang")
# elif defined(_MSC_VER)
# define nob_cc(cmd) nob_cmd_append(cmd, "cl.exe")
# elif defined(__TINYC__)
# define nob_cc(cmd) nob_cmd_append(cmd, "tcc")
# endif
# else
# define nob_cc(cmd) nob_cmd_append(cmd, "cc")
Expand Down Expand Up @@ -699,6 +702,8 @@ NOBDEF char *nob_temp_running_executable_path(void);
# define NOB_REBUILD_URSELF(binary_path, source_path) "clang", "-o", binary_path, source_path
# elif defined(_MSC_VER)
# define NOB_REBUILD_URSELF(binary_path, source_path) "cl.exe", nob_temp_sprintf("/Fe:%s", (binary_path)), source_path
# elif defined(__TINYC__)
# define NOB_REBUILD_URSELF(binary_path, source_path) "tcc", "-o", binary_path, source_path
# endif
# else
# define NOB_REBUILD_URSELF(binary_path, source_path) "cc", "-o", binary_path, source_path
Expand Down Expand Up @@ -2082,7 +2087,7 @@ NOBDEF bool nob_read_entire_file(const char *path, Nob_String_Builder *sb)
#ifndef _WIN32
m = ftell(f);
#else
m = _ftelli64(f);
m = _telli64(_fileno(f));
#endif
if (m < 0) nob_return_defer(false);
if (fseek(f, 0, SEEK_SET) < 0) nob_return_defer(false);
Expand Down