More PCC fixes.

This commit is contained in:
Roy Marples 2008-02-22 11:44:10 +00:00
parent 5bb09b6587
commit a9fcbf3e30
3 changed files with 7 additions and 3 deletions

View File

@ -70,8 +70,10 @@
#ifdef lint
# define _unused
#endif
#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__)
#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
# define _unused __attribute__((__unused__))
#else
# define _unused
#endif
_unused static void *xmalloc (size_t size)

View File

@ -27,7 +27,7 @@
#ifndef __EINFO_H__
#define __EINFO_H__
#if defined(__GNUC__) || defined(__PCC__)
#if defined(__GNUC__)
# define __EINFO_PRINTF __attribute__ ((__format__ (__printf__, 1, 2)))
# define __EINFO_XPRINTF __attribute__ ((__noreturn__, __format__ (__printf__, 1, 2)))
# define __EEND_PRINTF __attribute__ ((__format__ (__printf__, 2, 3)))

View File

@ -27,8 +27,10 @@
#if lint
# define _noreturn
#endif
#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__)
#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
# define _noreturn __attribute__ ((__noreturn__))
#else
# define _noreturn
#endif
_noreturn static void usage (int exit_status)