mirror of https://github.com/YosysHQ/yosys.git
libs/fst: Patch for zlib on windows
This commit is contained in:
parent
c4a0845207
commit
a54721aa39
|
@ -0,0 +1,16 @@
|
||||||
|
--- fstapi.h
|
||||||
|
+++ fstapi.h
|
||||||
|
@@ -33,11 +33,12 @@ extern "C" {
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
-#include <zlib.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
+ #include "libs/zlib/zlib.h"
|
||||||
|
#include "fst_win_unistd.h"
|
||||||
|
#else
|
||||||
|
+ #include <zlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
#include <time.h>
|
|
@ -14,3 +14,5 @@ mv config.h.bak config.h
|
||||||
|
|
||||||
sed -i -e 's,<config.h>,"config.h",' *.cc *.h
|
sed -i -e 's,<config.h>,"config.h",' *.cc *.h
|
||||||
sed -i -e 's,"fastlz.c","fastlz.cc",' *.cc *.h
|
sed -i -e 's,"fastlz.c","fastlz.cc",' *.cc *.h
|
||||||
|
|
||||||
|
patch -p0 < 00_PATCH_win_zlib.patch
|
||||||
|
|
|
@ -33,11 +33,12 @@ extern "C" {
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <zlib.h>
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
|
#include "libs/zlib/zlib.h"
|
||||||
#include "fst_win_unistd.h"
|
#include "fst_win_unistd.h"
|
||||||
#else
|
#else
|
||||||
|
#include <zlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
Loading…
Reference in New Issue