Ensure #include <config.h> occurs in every C file.

This commit is contained in:
Richard W.M. Jones
2012-06-27 15:49:06 +01:00
parent 6777425636
commit 1d17a6e9d8
8 changed files with 16 additions and 0 deletions

View File

@@ -16,6 +16,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -33,6 +33,8 @@ let rec generate_bindtests () =
generate_header CStyle LGPLv2plus;
pr "\
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>

View File

@@ -142,6 +142,8 @@ and generate_erlang_c () =
generate_header CStyle GPLv2plus;
pr "\
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -965,6 +965,8 @@ and generate_fish_prep_options_c () =
generate_header CStyle GPLv2plus;
pr "\
#include <config.h>
#include <stdio.h>
#include \"fish.h\"

View File

@@ -156,6 +156,8 @@ let output_source filename ?(title=None) ?(shortdesc=None) ?(longdesc=None) f =
output_to source (fun () ->
generate_header CStyle GPLv2plus;
pr "#include <config.h>\n\n";
pr "#include \"guestfs-gobject.h\"\n\n";
pr "/**\n";

View File

@@ -314,6 +314,8 @@ and generate_java_c () =
generate_header CStyle LGPLv2plus;
pr "\
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -35,6 +35,8 @@ let rec generate_perl_xs () =
generate_header CStyle LGPLv2plus;
pr "\
#include <config.h>
#include \"EXTERN.h\"
#include \"perl.h\"
#include \"XSUB.h\"

View File

@@ -33,6 +33,8 @@ let rec generate_tests () =
generate_header CStyle GPLv2plus;
pr "\
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>