works with both C and C++.
+2007-06-04 Noah Misch <noah@cs.caltech.edu>
+
+ * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
+ works with both C and C++.
+
2007-06-03 Noah Misch <noah@cs.caltech.edu>,
Bruno Haible <bruno@clisp.org>
simply defined to @code{main}.)
Thus, when calling Fortran routines from C that perform things like I/O,
-one should use this macro and name the "main" function
-@code{F77_MAIN} or @code{FC_MAIN} instead of @code{main}.
+one should use this macro and declare the "main" function like so:
+
+@example
+#ifdef __cplusplus
+ extern "C"
+#endif
+int F77_MAIN(int argc, char *argv[]);
+@end example
+
+(Again, replace @code{F77} with @code{FC} for Fortran instead of Fortran 77.)
@end defmac
@defmac AC_F77_WRAPPERS