Skip to content
Open
Show file tree
Hide file tree
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: 1 addition & 9 deletions nob.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const char *test_names[] = {
"cmd_run_dont_reset",
"chain",
"private_functions_inside_public_macros",
"unicode",
};
#define test_names_count ARRAY_LEN(test_names)

Expand Down Expand Up @@ -162,15 +163,6 @@ void print_available_commands(Commands commands)
}
}

#if defined(_WIN32) && defined(_MSC_VER) && defined(__cplusplus)
// TODO: I don't know why, but when you compile nob.c with
// cl.exe /std:c++20 /TP nob.c
// It just can't find the declaration of SetConsoleOutputCP().
// This is probably something about how we include windows.h in nob.h
extern "C" {
WINBASEAPI BOOL WINAPI SetConsoleOutputCP(_In_ UINT wCodePageID);
}
#endif

int main(int argc, char **argv)
{
Expand Down
Loading
Loading