Don't relay on MS linker merging global variables

Alex Cherepanov <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Organization Coscript Software
Message-ID <[email protected]>
Don't rely on MS linker merging global variables defined
multiple times.
dwtrace.h.diff (text/plain, 523 B)
Index: gs/src/dwtrace.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/dwtrace.h,v
retrieving revision 1.4
diff -b -u -r1.4 dwtrace.h
--- gs/src/dwtrace.h	16 Jun 2002 04:47:10 -0000	1.4
+++ gs/src/dwtrace.h	12 Aug 2003 23:44:16 -0000
@@ -20,7 +20,7 @@
 #ifndef dwtrace_INCLUDED
 #  define dwtrace_INCLUDED
 
-struct vd_trace_interface_s visual_tracer;
+extern struct vd_trace_interface_s visual_tracer;
 void visual_tracer_init(void);
 
 #endif /* dwtrace_INCLUDED */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.