Change 34977 by [EMAIL PROTECTED] on 2008/12/02 10:43:20

        Avoid warnings from exacting C compilers when -DNO_MATHOMS is in force.

Affected files ...

... //depot/perl/mathoms.c#97 edit

Differences ...

==== //depot/perl/mathoms.c#97 (text) ====
Index: perl/mathoms.c
--- perl/mathoms.c#96~34956~    2008-11-30 14:46:37.000000000 -0800
+++ perl/mathoms.c      2008-12-02 02:43:20.000000000 -0800
@@ -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);
End of Patch.

Reply via email to