[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] how to compile stik/sting stuff with gcc4

Paul Wratt wrote:
One last question, does "It is defined in include/compiler.h" imply
there are more changes to be made elsewhere?

No, include/compiler.h is a header provided by the MiNTLib, where the __CLOBBER_RETURN macro is defined.

For instance:

/* Convenience macros to test the versions of glibc and gcc.
   Use them like this:
   #if __GNUC_PREREQ (2,8)
   ... code requiring gcc 2.8 or later ...
   Note - they won't work for gcc1 or glibc1, since the _MINOR macros
   were not defined then.  */
#if defined __GNUC__ && defined __GNUC_MINOR__
# define __GNUC_PREREQ(maj, min) \
	((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
# define __GNUC_PREREQ(maj, min) 0

#if __GNUC_PREREQ(3, 3)
# define __CLOBBER_RETURN(a)
# define __CLOBBER_RETURN(a) a,

Vincent Rivière