mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 12:08:19 +00:00
io: smooth out non-POSIX function usage across platforms
This commit is contained in:
parent
0877798e18
commit
ceb7a923da
|
@ -2,11 +2,17 @@
|
||||||
#include "kernel/log.h"
|
#include "kernel/log.h"
|
||||||
#include "kernel/gzip.h"
|
#include "kernel/gzip.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <dirent.h>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
#if !defined(WIN32)
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#else
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
YOSYS_NAMESPACE_BEGIN
|
YOSYS_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unistd.h>
|
|
||||||
#include "kernel/yosys_common.h"
|
#include "kernel/yosys_common.h"
|
||||||
|
|
||||||
#ifndef YOSYS_GZIP_H
|
#ifndef YOSYS_GZIP_H
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
#include "kernel/yosys_common.h"
|
#include "kernel/yosys_common.h"
|
||||||
#include "kernel/log.h"
|
#include "kernel/log.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <dirent.h>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#if !defined(WIN32)
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#else
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
YOSYS_NAMESPACE_BEGIN
|
YOSYS_NAMESPACE_BEGIN
|
||||||
|
|
||||||
// Set of utilities for handling files
|
// Set of utilities for handling files
|
||||||
|
|
Loading…
Reference in a new issue