Change 34757 by [EMAIL PROTECTED] on 2008/11/06 22:16:03

        NDBM just isn't meant to be used with C++. So this
        change makes the intro of NDBM_File.xs even uglier,
        but hopefully it also makes tests pass now.

Affected files ...

... //depot/perl/ext/NDBM_File/NDBM_File.xs#19 edit

Differences ...

==== //depot/perl/ext/NDBM_File/NDBM_File.xs#19 (text) ====
Index: perl/ext/NDBM_File/NDBM_File.xs
--- perl/ext/NDBM_File/NDBM_File.xs#18~34756~   2008-11-06 12:18:08.000000000 
-0800
+++ perl/ext/NDBM_File/NDBM_File.xs     2008-11-06 14:16:03.000000000 -0800
@@ -3,20 +3,26 @@
 #include "XSUB.h"
 #undef NDBM_HEADER_USES_PROTOTYPES
 #if defined(I_GDBM_NDBM)
-#  include <gdbm-ndbm.h> /* Debian compatibility version */
 #  ifdef GDBM_NDBM_H_USES_PROTOTYPES
 #    define NDBM_HEADER_USES_PROTOTYPES
+START_EXTERN_C
 #  endif
+#  include <gdbm-ndbm.h> /* Debian compatibility version */
 #elif defined(I_GDBMNDBM)
-#  include <gdbm/ndbm.h> /* RedHat compatibility version */
 #  ifdef GDBMNDBM_H_USES_PROTOTYPES
 #    define NDBM_HEADER_USES_PROTOTYPES
+START_EXTERN_C
 #  endif
+#  include <gdbm/ndbm.h> /* RedHat compatibility version */
 #elif defined(I_NDBM)
-#  include <ndbm.h>
 #  ifdef NDBM_H_USES_PROTOTYPES
 #    define NDBM_HEADER_USES_PROTOTYPES
+START_EXTERN_C
 #  endif
+#  include <ndbm.h>
+#endif
+#ifdef NDBM_HEADER_USES_PROTOTYPES
+END_EXTERN_C
 #endif
 
 typedef struct {
End of Patch.

Reply via email to