mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Support for inline when generating C code which will be compiled by a
C++ compiler.
This commit is contained in:
@@ -833,6 +833,10 @@ Key_List::output_hash_function (void)
|
||||
else if (option[KRC] | option[C] | option[ANSIC])
|
||||
printf ("#ifdef __GNUC__\n"
|
||||
"__inline\n"
|
||||
"#else\n"
|
||||
"#ifdef __cplusplus\n"
|
||||
"inline\n"
|
||||
"#endif\n"
|
||||
"#endif\n");
|
||||
|
||||
if (option[KRC] | option[C] | option[ANSIC])
|
||||
|
||||
Reference in New Issue
Block a user