Re: Don't relay on MS linker merging global variables

"Igor V. Melichev" <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Please commit.

Igor.

----- Original Message ----- 
From: "Alex Cherepanov" <[email protected]>
To: "gs-code-review" <[email protected]>; "Igor V. Melichev"
<[email protected]>
Sent: Wednesday, August 13, 2003 4:03 AM
Subject: Don't relay on MS linker merging global variables


> Don't rely on MS linker merging global variables defined
> multiple times.
>
>


----------------------------------------------------------------------------
----


> 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.