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 b3610c4ab3
3 changed files with 14 additions and 3 deletions

View File

@ -2,11 +2,17 @@
#include "kernel/log.h"
#include "kernel/gzip.h"
#include <iostream>
#include <dirent.h>
#include <string>
#include <cstdarg>
#include <cstdio>
#if !defined(WIN32)
#include <dirent.h>
#include <unistd.h>
#else
#include <io.h>
#endif
YOSYS_NAMESPACE_BEGIN

View File

@ -1,5 +1,4 @@
#include <string>
#include <unistd.h>
#include "kernel/yosys_common.h"
#ifndef YOSYS_GZIP_H

View File

@ -1,9 +1,15 @@
#include "kernel/yosys_common.h"
#include "kernel/log.h"
#include <iostream>
#include <dirent.h>
#include <string>
#if !defined(WIN32)
#include <dirent.h>
#include <unistd.h>
#else
#include <io.h>
#endif
YOSYS_NAMESPACE_BEGIN
// Set of utilities for handling files