# HG changeset patch # User james # Date 1062621826 0 # Node ID 8bae4d6cdd100cb5a25ccebcff60b58fb9dc5b1c # Parent 1393f296cac6916341a1fa35e20349cd798cdd9b [xemacs-hg @ 2003-09-03 20:43:46 by james] Nickolay Pakoulin's patch to fix the C++ build for make-dump-id. diff -r 1393f296cac6 -r 8bae4d6cdd10 lib-src/ChangeLog --- a/lib-src/ChangeLog Tue Sep 02 21:52:24 2003 +0000 +++ b/lib-src/ChangeLog Wed Sep 03 20:43:46 2003 +0000 @@ -1,3 +1,7 @@ +2003-08-29 Nickolay Pakoulin + + * make-dump-id.c (main): Set "C" linking rule for dump_id + 2003-06-30 Andrew Begel * make-docfile.c (write_c_args): Escape newlines that arise in the diff -r 1393f296cac6 -r 8bae4d6cdd10 lib-src/make-dump-id.c --- a/lib-src/make-dump-id.c Tue Sep 02 21:52:24 2003 +0000 +++ b/lib-src/make-dump-id.c Wed Sep 03 20:43:46 2003 +0000 @@ -64,6 +64,10 @@ return EXIT_FAILURE; } + /* dump_id is declared as extern "C" in lrecord.h */ + fprintf (f, "#if defined (__cplusplus)\n"); + fprintf (f, "extern \"C\"\n"); + fprintf (f, "#endif /* __cplusplus */\n"); fprintf (f, "unsigned int dump_id = %uU;\n", generate_dump_id ()); if ((fclose (f)) != 0)