GUAC-730: Add stddef.h to generated keymaps. Fix perl warning while we're at it.

This commit is contained in:
Michael Jumper 2014-06-10 18:23:21 -07:00
parent fdc886a5fb
commit 8bc4864d9a

View File

@ -32,9 +32,9 @@
use 5.008;
sub keymap_symbol {
my $_ = shift;
s/-/_/g;
return 'guac_rdp_keymap_' . $_;
my $name = shift;
$name =~ s/-/_/g;
return 'guac_rdp_keymap_' . $name;
}
#
@ -54,6 +54,8 @@ print OUTPUT
. '#else' . "\n"
. '#include <freerdp/kbd/layouts.h>' . "\n"
. '#endif' . "\n"
. "\n"
. '#include <stddef.h>' . "\n"
. "\n";
for my $filename (@ARGV) {