From 405cea1f19eb4de00805eeb6bddd36184e51b400 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 20 Feb 2008 18:06:01 +0000 Subject: Support the PCC compiler. --- mk/prog.mk | 2 +- src/includes/rc-misc.h | 2 +- src/libeinfo/einfo.h | 2 +- src/rc/_usage.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mk/prog.mk b/mk/prog.mk index c710517..d8c514f 100644 --- a/mk/prog.mk +++ b/mk/prog.mk @@ -23,7 +23,7 @@ LDFLAGS+= ${PROGLDFLAGS} all: depend ${PROG} ${PROG}: ${SCRIPTS} ${OBJS} - ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} + ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} clean: rm -f ${OBJS} ${PROG} ${CLEANFILES} diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 1ffe48d..59c3e39 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -70,7 +70,7 @@ #ifdef lint # define _unused #endif -#if __GNUC__ > 2 || defined(__INTEL_COMPILER) +#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__) # define _unused __attribute__((__unused__)) #endif diff --git a/src/libeinfo/einfo.h b/src/libeinfo/einfo.h index ca2487b..49ef03f 100644 --- a/src/libeinfo/einfo.h +++ b/src/libeinfo/einfo.h @@ -27,7 +27,7 @@ #ifndef __EINFO_H__ #define __EINFO_H__ -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__PCC__) # 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))) diff --git a/src/rc/_usage.c b/src/rc/_usage.c index 0e39271..6dcb63a 100644 --- a/src/rc/_usage.c +++ b/src/rc/_usage.c @@ -27,7 +27,7 @@ #if lint # define _noreturn #endif -#if __GNUC__ > 2 || defined(__INTEL_COMPILER) +#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__) # define _noreturn __attribute__ ((__noreturn__)) #endif -- cgit v1.2.3