add macro guard for OS

This commit is contained in:
idea4good
2019-11-10 21:22:24 +08:00
parent 78cf89a6fb
commit e8057f2e3e
5 changed files with 20 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
#if (defined _WIN32) || (defined WIN32) || (defined _WIN64) || (defined WIN64)
#include "../../core_include/api.h"
#include <string.h>
#include <stdio.h>
@@ -389,3 +391,5 @@ int c_fifo::write(void* buf, int len)
}
return i;
}
#endif