Make h2ph's generated preamble require-able when empty.
Craig A. Berry [Sun, 19 Apr 2009 22:08:55 +0000 (17:08 -0500)]
$Config{ccsymbols} and friends are currently empty on Win32 and
undefined on VMS.

utils/h2ph.PL

index 4e99a7a..cd4b5a0 100644 (file)
@@ -809,6 +809,7 @@ sub build_preamble_if_necessary
                    quotemeta($define{$_}), "\" } }\n\n";
            }
        }
+       print PREAMBLE "\n1;\n";  # avoid 'did not return a true value' when empty
     close PREAMBLE               or die "Cannot close $preamble:  $!";
 }