io: smooth out non-POSIX function usage across platforms

This commit is contained in:
Emil J. Tywoniak 2025-01-05 23:55:38 +01:00
parent d75b6bb3d7
commit c1028be190
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,12 @@
#include <dirent.h>
#include <string>
#if !defined(WIN32)
#include <unistd.h>
#else
#include <io.h>
#endif
YOSYS_NAMESPACE_BEGIN
// Set of utilities for handling files