Windows: add basic support for msys2

This commit is contained in:
李通洲
2022-10-02 17:52:09 +08:00
parent 145e09d164
commit eaa4230bf5
8 changed files with 52 additions and 19 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
const char* ffGetCpuUsageInfo(long* inUseAll, long* totalAll)
{
long user, nice, system, idle, iowait, irq, softirq;
long user = 0, nice = 0, system = 0, idle = 0, iowait = 0, irq = 0, softirq = 0;
FILE* procStat = fopen("/proc/stat", "r");
if(procStat == NULL)