Skip to content
Merged
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
6 changes: 6 additions & 0 deletions include/cmetrics/cmt_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@

#include <time.h>
#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#else
#include <windows.h>
#endif
#endif

static inline struct tm *cmt_platform_gmtime_r(const time_t *timep, struct tm *result)
Expand Down
6 changes: 6 additions & 0 deletions src/cmt_atomic_msvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
*/

#include <cmetrics/cmt_atomic.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#else
#include <windows.h>
#endif

/* This allows cmt_atomic_initialize to be automatically called
* as soon as the program starts if enabled.
Expand Down
Loading