* gnomesupport.awk: Put c++ guards after #includes.
* gnomesupport-fake.h: Remove dependence on `gnome-argp.h'. Move
relevant declarations here.
svn path=/trunk/; revision=810
+1999-05-27 Raja R Harinath <harinath@cs.umn.edu>
+
+ * gnomesupport.awk: Put c++ guards after #includes.
+
+ * gnomesupport-fake.h: Remove dependence on `gnome-argp.h'. Move
+ relevant declarations here.
+
1999-05-12 Martin Baulig <martin@home-of-linux.org>
* canonicalize.c: Use `set_errno' instead of `__set_errno' and
#include <gnomesupport.h>
-#include <gnome-argp.h>
+/* Some systems, like Red Hat 4.0, define these but don't declare
+ them. Hopefully it is safe to always declare them here. */
+extern char *program_invocation_short_name;
+extern char *program_invocation_name;
/* Override some of config.h.
Gnomesupport provides the replacements for these, so you actually
# define HAVE_PROGRAM_INVOCATION_NAME 1
#endif
+#ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME
+# define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
+#endif
+
#endif /* GNOMESUPPORT_FAKE_H_ */
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 */";
}
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"]) {
}
}
+ print "";
+ print "#ifdef __cplusplus";
+ print "extern \"C\" {";
+ print "#endif /* __cplusplus */";
+
if (def["NEED_DECLARATION_GETHOSTNAME"]) {
print "";
print "/* Get name of current host. */";