Skip to content
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
6 changes: 6 additions & 0 deletions nob.h
Original file line number Diff line number Diff line change
Expand Up @@ -3022,6 +3022,12 @@ NOBDEF char *nob_temp_running_executable_path(void)
#define nprocs nob_nprocs
#define nanos_since_unspecified_epoch nob_nanos_since_unspecified_epoch
#define NANOS_PER_SEC NOB_NANOS_PER_SEC

// On C++, this will cause a failur of compilation if nob.h is included before
// things like `<algorithm>' or `<string_view>' because of `std::swap'
#if defined(__cplusplus)
#undef swap
#endif
#endif // NOB_STRIP_PREFIX
#endif // NOB_STRIP_PREFIX_GUARD_

Expand Down