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
2 changes: 1 addition & 1 deletion tests/common/systemtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define ST_WINDOWS
#elif defined(__APPLE__) && defined(__MACH__)
#define ST_APPLE
#elif defined(__linux__) || defined(__FreeBSD__) || defined(BSD)
#elif defined(__unix__)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems safer?

Suggested change
#elif defined(__unix__)
#elif defined(__unix__) || defined(__linux__) || defined(__FreeBSD__) || defined(BSD)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#elif defined(__unix__) || defined(__linux__) || defined(__FreeBSD__) || defined(BSD)

Considering that Linux and BSDs are Unix systems (so __unix__ is defined for them), this is suggestion is redundant.

#define ST_NIX
#else
#error "Unknown platform"
Expand Down
Loading