Commit 1cdb2dac by Alan Mishchenko

Problem fix: <unistd.h> is not properly defined.

parent 3309ccab
...@@ -21,13 +21,18 @@ ...@@ -21,13 +21,18 @@
#include "gia.h" #include "gia.h"
#include "misc/vec/vecSet.h" #include "misc/vec/vecSet.h"
#ifdef _MSC_VER
#define unlink _unlink
#else
#include <unistd.h>
#endif
#ifdef ABC_USE_PTHREADS #ifdef ABC_USE_PTHREADS
#ifdef _WIN32 #ifdef _WIN32
#include "../lib/pthread.h" #include "../lib/pthread.h"
#else #else
#include <pthread.h> #include <pthread.h>
#include <unistd.h>
#endif #endif
#endif #endif
......
...@@ -22,6 +22,11 @@ ...@@ -22,6 +22,11 @@
#include "base/main/main.h" #include "base/main/main.h"
#include "base/cmd/cmd.h" #include "base/cmd/cmd.h"
#ifdef _MSC_VER
#define unlink _unlink
#else
#include <unistd.h>
#endif
#ifdef ABC_USE_PTHREADS #ifdef ABC_USE_PTHREADS
...@@ -29,7 +34,6 @@ ...@@ -29,7 +34,6 @@
#include "../lib/pthread.h" #include "../lib/pthread.h"
#else #else
#include <pthread.h> #include <pthread.h>
#include <unistd.h>
#endif #endif
#endif #endif
......
...@@ -29,13 +29,18 @@ ...@@ -29,13 +29,18 @@
#include <opt/sfm/sfm.h> #include <opt/sfm/sfm.h>
#include <opt/fxu/fxu.h> #include <opt/fxu/fxu.h>
#ifdef _MSC_VER
#define unlink _unlink
#else
#include <unistd.h>
#endif
#ifdef ABC_USE_PTHREADS #ifdef ABC_USE_PTHREADS
#ifdef _WIN32 #ifdef _WIN32
#include "../lib/pthread.h" #include "../lib/pthread.h"
#else #else
#include <pthread.h> #include <pthread.h>
#include <unistd.h>
#endif #endif
#endif #endif
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#include "cnf.h" #include "cnf.h"
#include "sat/bsat/satSolver.h" #include "sat/bsat/satSolver.h"
ABC_NAMESPACE_IMPL_START
#ifdef _MSC_VER #ifdef _MSC_VER
#define unlink _unlink #define unlink _unlink
#else #else
...@@ -39,6 +37,8 @@ ABC_NAMESPACE_IMPL_START ...@@ -39,6 +37,8 @@ ABC_NAMESPACE_IMPL_START
#endif #endif
ABC_NAMESPACE_IMPL_START
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
/// DECLARATIONS /// /// DECLARATIONS ///
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment