This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
GDBM_File must cast fatal_func appropriately for the version of gdbm.h
authorNicholas Clark <nick@ccl4.org>
Mon, 17 Dec 2012 09:31:11 +0000 (10:31 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 17 Dec 2012 09:31:11 +0000 (10:31 +0100)
commit93b74b47eb5e224de232c87de1cafcd5a43fd945
tree10e948c9cef613e093185a523720b864163f1ffd
parentd4ead2eb2e301c11d2d2e40b0c3fac9190fd5379
GDBM_File must cast fatal_func appropriately for the version of gdbm.h

The fifth argument to gdbm_open() is an optional callback function for fatal
errors. The prototype for this function has changed between gdbm 1.8.3 and
1.9.0, from void (*)() to void(*)(const char *). This distinction doesn't
matter to a C compiler, but does to a C++ compiler, which we use to test the
core build. So, cast appropriately, depending on the version macros in
gdbm.h
ext/GDBM_File/GDBM_File.xs