fix bug for windows

This commit is contained in:
William Bell
2025-08-16 00:50:23 +01:00
parent 0666b02c13
commit f9f8ca08c6

View File

@@ -16,8 +16,9 @@
#include <string.h> #include <string.h>
#if defined(_WIN32) #if defined(_WIN32)
#include <psapi.h> #define _WIN32_WINNT 0x0602
#include <windows.h> #include <windows.h>
#include <psapi.h>
double get_memory_usage_mb() { double get_memory_usage_mb() {
PROCESS_MEMORY_COUNTERS pmc; PROCESS_MEMORY_COUNTERS pmc;