Skip to content

Commit

Permalink
Fixed lacking include for localtime_s on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Małecki committed Sep 28, 2017
1 parent 53bdbbf commit a9b3e85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common/srt_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ written by
#define HAISRT_COMPAT_H__

#include <stddef.h>
#include <time.h>

#ifdef __cplusplus
extern "C" {
Expand All @@ -36,7 +37,6 @@ extern "C" {
#if defined(__MACH__)

#include <AvailabilityMacros.h>
#include <time.h>
#include <errno.h>
#include <pthread.h>
#include <string.h>
Expand Down Expand Up @@ -187,7 +187,6 @@ inline struct tm LocalTime(time_t tt)
}



#endif
#endif // defined C++

#endif // HAISRT_COMPAT_H__

0 comments on commit a9b3e85

Please sign in to comment.