Skip to content

Commit f3b09dd

Browse files
Enabled ucrt64 gmtime_r implementation
Defined _POSIX_THREAD_SAFE_FUNCTIONS to enable built-in gmtime_r implementation, and removed windows.h implementation.
1 parent ca9603f commit f3b09dd

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

libnvme/src/platform/windows.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@ static inline void libnvme_init(void)
4545
}
4646

4747

48-
/* time.h POSIX compatibility */
49-
50-
static inline struct tm *gmtime_r(const time_t *timep, struct tm *result)
51-
{
52-
if (gmtime_s(result, timep) == 0)
53-
return result;
54-
return NULL;
55-
}
56-
57-
5848
/* signal.h POSIX compatibility - Windows doesn't have sigaction */
5949

6050
struct sigaction {

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ if host_system == 'windows'
177177
add_project_arguments(
178178
[
179179
'-DHAVE_GLIBC_IOCTL=0',
180+
'-D_POSIX_THREAD_SAFE_FUNCTIONS',
180181
],
181182
language : 'c',
182183
)

0 commit comments

Comments
 (0)