diff lib-src/make-dump-id.c @ 1663:8bae4d6cdd10

[xemacs-hg @ 2003-09-03 20:43:46 by james] Nickolay Pakoulin's patch to fix the C++ build for make-dump-id.
author james
date Wed, 03 Sep 2003 20:43:46 +0000
parents 223736d75acb
children 034a2ddf5b6b
line wrap: on
line diff
--- 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)