summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-12-02 10:43:20 +0000
committerNicholas Clark <nick@ccl4.org>2008-12-02 10:43:20 +0000
commit359d40bacc2dcec1685bd77f0ec299cc69818b79 (patch)
tree78fc56bcb1d96d99408fd306c4986697d6c83251 /mathoms.c
parentc4cd47ac59d76a2228d65807ac3ac3a0ef9ed7c7 (diff)
downloadperl-359d40bacc2dcec1685bd77f0ec299cc69818b79.tar.gz
Avoid warnings from exacting C compilers when -DNO_MATHOMS is in force.
p4raw-id: //depot/perl@34977
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mathoms.c b/mathoms.c
index 3bdba65052..7eae87ed4e 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -16,7 +16,7 @@
* [p.5 of _The Lord of the Rings_: "Prologue"]
*/
-#ifndef NO_MATHOMS
+
/*
* This file contains mathoms, various binary artifacts from previous
@@ -31,6 +31,12 @@
#define PERL_IN_MATHOMS_C
#include "perl.h"
+#ifdef NO_MATHOMS
+/* ..." warning: ISO C forbids an empty source file"
+ So make sure we have something in here by processing the headers anyway.
+ */
+#else
+
PERL_CALLCONV OP * Perl_ref(pTHX_ OP *o, I32 type);
PERL_CALLCONV void Perl_sv_unref(pTHX_ SV *sv);
PERL_CALLCONV void Perl_sv_taint(pTHX_ SV *sv);