aboutsummaryrefslogtreecommitdiff
path: root/zlib/contrib/delphi2/zlib32.cpp
diff options
context:
space:
mode:
authorTom Tromey <tromey@gcc.gnu.org>1999-05-04 19:30:25 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-05-04 19:30:25 +0000
commitc45f211ee347bc648b183c5123498c5b7310bb0e (patch)
treee97105783ac15ce06e3efe366d641f3693aa8974 /zlib/contrib/delphi2/zlib32.cpp
parent3d298f8f0e3934f7951b13281976bb9eda021387 (diff)
downloadgcc-c45f211ee347bc648b183c5123498c5b7310bb0e.zip
gcc-c45f211ee347bc648b183c5123498c5b7310bb0e.tar.gz
gcc-c45f211ee347bc648b183c5123498c5b7310bb0e.tar.bz2
Initial revision
From-SVN: r26770
Diffstat (limited to 'zlib/contrib/delphi2/zlib32.cpp')
-rw-r--r--zlib/contrib/delphi2/zlib32.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/zlib/contrib/delphi2/zlib32.cpp b/zlib/contrib/delphi2/zlib32.cpp
new file mode 100644
index 0000000..7372f6b
--- /dev/null
+++ b/zlib/contrib/delphi2/zlib32.cpp
@@ -0,0 +1,42 @@
+
+#include <windows.h>
+#pragma hdrstop
+#include <condefs.h>
+
+
+//---------------------------------------------------------------------------
+// Important note about DLL memory management in a VCL DLL:
+//
+//
+//
+// If your DLL uses VCL and exports any functions that pass VCL String objects
+// (or structs/classes containing nested Strings) as parameter or function
+// results, you will need to build both your DLL project and any EXE projects
+// that use your DLL with the dynamic RTL (the RTL DLL). This will change your
+// DLL and its calling EXE's to use BORLNDMM.DLL as their memory manager. In
+// these cases, the file BORLNDMM.DLL should be deployed along with your DLL
+// and the RTL DLL (CP3240MT.DLL). To avoid the requiring BORLNDMM.DLL in
+// these situations, pass string information using "char *" or ShortString
+// parameters and then link with the static RTL.
+//
+//---------------------------------------------------------------------------
+USEUNIT("adler32.c");
+USEUNIT("compress.c");
+USEUNIT("crc32.c");
+USEUNIT("deflate.c");
+USEUNIT("gzio.c");
+USEUNIT("infblock.c");
+USEUNIT("infcodes.c");
+USEUNIT("inffast.c");
+USEUNIT("inflate.c");
+USEUNIT("inftrees.c");
+USEUNIT("infutil.c");
+USEUNIT("trees.c");
+USEUNIT("uncompr.c");
+USEUNIT("zutil.c");
+//---------------------------------------------------------------------------
+#pragma argsused
+int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*)
+{
+ return 1;
+}