From bb636fa4a888d369d95f00a75923476bd0dae49f Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Thu, 4 Jan 2001 21:14:22 +0000 Subject: DB3 NDBM/ODBM emulation tweaks from Stanislav Brabec . p4raw-id: //depot/perl@8320 --- ext/NDBM_File/NDBM_File.xs | 5 +++++ ext/ODBM_File/ODBM_File.xs | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'ext') diff --git a/ext/NDBM_File/NDBM_File.xs b/ext/NDBM_File/NDBM_File.xs index 49a1db5e56..c417eb693e 100644 --- a/ext/NDBM_File/NDBM_File.xs +++ b/ext/NDBM_File/NDBM_File.xs @@ -1,6 +1,11 @@ #include "EXTERN.h" #include "perl.h" #include "XSUB.h" +/* If using the DB3 emulation, ENTER is defined both + * by DB3 and Perl. We drop the Perl definition now. + * See also INSTALL section on DB3. + * -- Stanislav Brabec */ +#undef ENTER #include typedef struct { diff --git a/ext/ODBM_File/ODBM_File.xs b/ext/ODBM_File/ODBM_File.xs index 150f2ef894..27174ef062 100644 --- a/ext/ODBM_File/ODBM_File.xs +++ b/ext/ODBM_File/ODBM_File.xs @@ -3,6 +3,11 @@ #include "XSUB.h" #ifdef I_DBM +/* If using the DB3 emulation, ENTER is defined both + * by DB3 and Perl. We drop the Perl definition now. + * See also INSTALL section on DB3. + * -- Stanislav Brabec */ +# undef ENTER # include #else # ifdef I_RPCSVC_DBM -- cgit v1.2.1