mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
Ask gperf to use ANSI-C for generation.
This avoids an '80s C prototype which caused a warning during our build.
This commit is contained in:
parent
1199a948e4
commit
f5fcc00997
@ -492,7 +492,7 @@ extras/keymap/keys-from-name.gperf: extras/keymap/keys.txt
|
||||
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
|
||||
|
||||
extras/keymap/keys-from-name.h: extras/keymap/keys-from-name.gperf Makefile
|
||||
$(AM_V_GEN)$(GPERF) -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
|
||||
$(AM_V_GEN)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
|
||||
|
||||
extras/keymap/keys-to-name.h: extras/keymap/keys.txt Makefile
|
||||
$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
|
||||
|
Loading…
Reference in New Issue
Block a user