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

gEDA-cvs: CVS update: globals.h



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

  Modified:    .        globals.h
  Log:
  work around some gcc-isms to make this build with the sun studio compilers
  
  
  Revision  Changes    Path
  1.16      +14 -0     eda/geda/gaf/gschem/include/globals.h
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: globals.h
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/include/globals.h,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- globals.h	28 Sep 2006 18:00:31 -0000	1.15
  +++ globals.h	4 Dec 2006 22:10:09 -0000	1.16
  @@ -97,5 +97,19 @@
   # define N_(String) (String)
   #endif
   
  +/*
  + * __attribute__((unused)) is a gcc extension so define
  + * a portable macro, ATTRIBUTE_UNUSED, to use instead
  + */
  +#ifndef GCC_VERSION
  +#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
  +#endif /* GCC_VERSION */
  +
  +#if GCC_VERSION > 2007
  +#define ATTRIBUTE_UNUSED __attribute__((unused))
  +#else
  +#define ATTRIBUTE_UNUSED
  +#endif
  +
   /*EK* used by prototype.h */
   #include "../include/x_states.h"
  
  
  


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