Skip to content

Commit 58f242f

Browse files
authored
Merge pull request #3897 from bafadumi/main
fix(uwp): Gate NTSTATUS definition behind WINAPI_PARTITION_DESKTOP for UWP build
2 parents bf78863 + 397f663 commit 58f242f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/shared/platform/windows/win_clock.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
#define NANOSECONDS_PER_SECOND 1000000000ULL
1111
#define NANOSECONDS_PER_TICK 100
1212

13+
#if WINAPI_PARTITION_DESKTOP
1314
extern NTSTATUS
1415
NtQueryTimerResolution(PULONG MinimumResolution, PULONG MaximumResolution,
1516
PULONG CurrentResolution);
17+
#endif
1618

1719
static __wasi_errno_t
1820
calculate_monotonic_clock_frequency(uint64 *out_frequency)

0 commit comments

Comments
 (0)