[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: mk_verilog_syms.c



  User: danmc   
  Date: 06/12/04 17:10:09

  Modified:    .        mk_verilog_syms.c
  Log:
  work around some gcc-isms to make this build with the sun studio compilers
  
  
  Revision  Changes    Path
  1.6       +6 -0      eda/geda/gaf/gnetlist/utils/mk_verilog_syms.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: mk_verilog_syms.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gnetlist/utils/mk_verilog_syms.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- mk_verilog_syms.c	4 Feb 2005 23:14:31 -0000	1.5
  +++ mk_verilog_syms.c	4 Dec 2006 22:10:08 -0000	1.6
  @@ -46,6 +46,12 @@
   #define CYAN		6
   #define GREY		7
   
  +/* __FUNCTION__ seems to be a gcc extension */
  +#ifndef __GNUC__
  +#define __FUNCTION1(a,b) a ":" #b
  +#define __FUNCTION2(a,b) __FUNCTION1(a,b)
  +#define __FUNCTION__ __FUNCTION2(__FILE__,__LINE__)
  +#endif
   
   /* external prototypes */
   int GetStringDisplayLength(char *str,int font_size);  /* char_width.c */
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs