native: fixup #1145: function declaration
Merge pull request #1172 from Kijewski/fixup-166b88f1

native: fixup #1145: function declaration