# New Ticket Created by l.mai@web.de # Please include the string: [perl #99368] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=99368 > Hi, h2ph generates code of the form unless(defined(&FOO)) { sub FOO () {42;} } for a C macro like '#define FOO 42'. The problem with that: 'sub' happens at compile time, 'unless' at runtime. So the sub is unconditionally defined first, then the unless runs with an empty body. I've attached a git patch that should solve the problem.Thread Previous