Просмотр исходного кода

Merge pull request #3897 from bafadumi/main

fix(uwp): Gate NTSTATUS definition behind WINAPI_PARTITION_DESKTOP for UWP build
Marcin Kolny 1 год назад
Родитель
Сommit
58f242f357
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      core/shared/platform/windows/win_clock.c

+ 2 - 0
core/shared/platform/windows/win_clock.c

@@ -10,9 +10,11 @@
 #define NANOSECONDS_PER_SECOND 1000000000ULL
 #define NANOSECONDS_PER_SECOND 1000000000ULL
 #define NANOSECONDS_PER_TICK 100
 #define NANOSECONDS_PER_TICK 100
 
 
+#if WINAPI_PARTITION_DESKTOP
 extern NTSTATUS
 extern NTSTATUS
 NtQueryTimerResolution(PULONG MinimumResolution, PULONG MaximumResolution,
 NtQueryTimerResolution(PULONG MinimumResolution, PULONG MaximumResolution,
                        PULONG CurrentResolution);
                        PULONG CurrentResolution);
+#endif
 
 
 static __wasi_errno_t
 static __wasi_errno_t
 calculate_monotonic_clock_frequency(uint64 *out_frequency)
 calculate_monotonic_clock_frequency(uint64 *out_frequency)