More PCC fixes.
This commit is contained in:
parent
5bb09b6587
commit
a9fcbf3e30
@ -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)
|
||||
|
@ -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)))
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user