diff options
author | Craig A. Berry <craigberry@mac.com> | 2014-09-26 21:09:12 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2014-09-26 21:09:12 -0500 |
commit | 30f5963ce0621352ef371c745bf5a965e143d835 (patch) | |
tree | 7582a5fe236458332dd2ebc07fd93efa19e02f2a /cpan/DB_File | |
parent | b7ddc5bada637a1961bd44a02428c42f98955212 (diff) | |
download | perl-30f5963ce0621352ef371c745bf5a965e143d835.tar.gz |
Make DB_File compile under clang++.
Follow-up to 7f15aad6d6ce55cb. Also noted upstream at
https://rt.cpan.org/Ticket/Display.html?id=96126
the necessity of, when rolling one's own dNOOP, to do everything
the core dNOOP does.
Diffstat (limited to 'cpan/DB_File')
-rw-r--r-- | cpan/DB_File/DB_File.xs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpan/DB_File/DB_File.xs b/cpan/DB_File/DB_File.xs index c42a2afa76..d9317c0ae5 100644 --- a/cpan/DB_File/DB_File.xs +++ b/cpan/DB_File/DB_File.xs @@ -164,7 +164,11 @@ # ifndef DB_VERSION_MAJOR # undef dNOOP -# define dNOOP extern int DB_File___notused +# ifdef __cplusplus +# define dNOOP (void)0 +# else +# define dNOOP extern int DB_File___notused +# endif /* Ditto for dXSARGS. */ # undef dXSARGS |