summaryrefslogtreecommitdiff
path: root/support/gnomesupport.awk
diff options
context:
space:
mode:
Diffstat (limited to 'support/gnomesupport.awk')
-rw-r--r--support/gnomesupport.awk11
1 files changed, 5 insertions, 6 deletions
diff --git a/support/gnomesupport.awk b/support/gnomesupport.awk
index 7e318b00..2f89ab6a 100644
--- a/support/gnomesupport.awk
+++ b/support/gnomesupport.awk
@@ -8,10 +8,6 @@ BEGIN {
print "#ifndef GNOMESUPPORT_H";
print "#define GNOMESUPPORT_H";
print "";
- print "#ifdef __cplusplus";
- print "extern \"C\" {";
- print "#endif /* __cplusplus */";
- print "";
print "#include <stddef.h> /* for size_t */";
}
@@ -20,12 +16,10 @@ BEGIN {
END {
if (!def["HAVE_VASPRINTF"] || !def["HAVE_VSNPRINTF"]) {
- print "";
print "#include <stdarg.h>";
}
if (!def["HAVE_SCANDIR"] || def["NEED_DECLARATION_SCANDIR"]) {
- print "";
print "#include <sys/types.h>";
if (def["HAVE_DIRENT_H"]) {
@@ -44,6 +38,11 @@ END {
}
}
+ print "";
+ print "#ifdef __cplusplus";
+ print "extern \"C\" {";
+ print "#endif /* __cplusplus */";
+
if (def["NEED_DECLARATION_GETHOSTNAME"]) {
print "";
print "/* Get name of current host. */";