You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
451 B

--- ./src/output.cc
+++ ../src/output.cc
@@ -2083,6 +2083,16 @@
}
printf ("\n");
+ // Include stdlib.h or cstdlib header to fix errors about size_t
+ if (option[KRC] || option[C] || option[ANSIC])
+ {
+ printf("#include <stdlib.h>\n\n");
+ }
+ else if (option[CPLUSPLUS])
+ {
+ printf("#include <cstdlib>\n\n");
+ }
+
if (_charset_dependent
&& (_key_positions.get_size() > 0 || option[UPPERLOWER]))
{