diff options
| author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-11-02 09:23:34 +0000 |
|---|---|---|
| committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-11-02 09:23:34 +0000 |
| commit | 9e0926a21f2dc4c58ff2ef786c5688a3dcaef839 (patch) | |
| tree | 40eff2d79abb418ef0f4a00ea5893f60e3cbbc04 | |
| parent | 10fd1be90ade0ec765d581f3a20d94164c3d0753 (diff) | |
| download | fpc-9e0926a21f2dc4c58ff2ef786c5688a3dcaef839.tar.gz | |
+ fixed zlib for windows, resolves #12451
+ test
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@12013 3ad0048d-3df7-0310-abae-a5850022a9f2
| -rw-r--r-- | packages/zlib/src/zlib.pp | 2 | ||||
| -rw-r--r-- | tests/Makefile | 4 | ||||
| -rw-r--r-- | tests/Makefile.fpc | 2 | ||||
| -rw-r--r-- | tests/test/packages/zlib/tzlib1.pp | 7 |
4 files changed, 12 insertions, 3 deletions
diff --git a/packages/zlib/src/zlib.pp b/packages/zlib/src/zlib.pp index 607d5cc457..3dc170f412 100644 --- a/packages/zlib/src/zlib.pp +++ b/packages/zlib/src/zlib.pp @@ -29,7 +29,9 @@ const {$endif windows} {$endif} +{$ifndef windows} {$linklib libz} +{$endif windows} type { Compatible with paszlib } diff --git a/tests/Makefile b/tests/Makefile index 3294b9d741..69d547176d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,5 +1,5 @@ # -# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/10/22] +# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/09/28] # default: allexectests MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded @@ -1443,7 +1443,7 @@ ifndef LOG export LOG:=$(TEST_OUTPUTDIR)/log endif TESTSUBDIRS=cg cg/variants cg/cdecl opt units/system units/dos units/crt units/objects units/strings units/sysutils units/math units/sharemem -TESTPACKAGESUBDIRS=cg packages/win-base packages/webtbs packages/hash packages/fcl-registry packages/fcl-process +TESTPACKAGESUBDIRS=cg packages/win-base packages/webtbs packages/hash packages/fcl-registry packages/fcl-process packages/zlib ifdef QUICKTEST export QUICKTEST else diff --git a/tests/Makefile.fpc b/tests/Makefile.fpc index 565500d018..00b39697f3 100644 --- a/tests/Makefile.fpc +++ b/tests/Makefile.fpc @@ -120,7 +120,7 @@ endif # Subdirs available in the test subdir TESTSUBDIRS=cg cg/variants cg/cdecl opt units/system units/dos units/crt units/objects units/strings units/sysutils units/math units/sharemem -TESTPACKAGESUBDIRS=cg packages/win-base packages/webtbs packages/hash packages/fcl-registry packages/fcl-process +TESTPACKAGESUBDIRS=cg packages/win-base packages/webtbs packages/hash packages/fcl-registry packages/fcl-process packages/zlib ifdef QUICKTEST export QUICKTEST diff --git a/tests/test/packages/zlib/tzlib1.pp b/tests/test/packages/zlib/tzlib1.pp new file mode 100644 index 0000000000..faee599fa2 --- /dev/null +++ b/tests/test/packages/zlib/tzlib1.pp @@ -0,0 +1,7 @@ +{ %NOTE=This test requires an installed zlib1 shared library } +{ simple compilation test } +uses + zlib; +begin + writeln(zlibVersion); +end. |
