Support the PCC compiler.
This commit is contained in:
		| @@ -23,7 +23,7 @@ LDFLAGS+=		${PROGLDFLAGS} | |||||||
| all: depend ${PROG} | all: depend ${PROG} | ||||||
|  |  | ||||||
| ${PROG}: ${SCRIPTS} ${OBJS} | ${PROG}: ${SCRIPTS} ${OBJS} | ||||||
| 	${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} | 	${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} | ||||||
|  |  | ||||||
| clean: | clean: | ||||||
| 	rm -f ${OBJS} ${PROG} ${CLEANFILES} | 	rm -f ${OBJS} ${PROG} ${CLEANFILES} | ||||||
|   | |||||||
| @@ -70,7 +70,7 @@ | |||||||
| #ifdef lint | #ifdef lint | ||||||
| # define _unused | # define _unused | ||||||
| #endif | #endif | ||||||
| #if __GNUC__ > 2 || defined(__INTEL_COMPILER) | #if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__) | ||||||
| # define _unused __attribute__((__unused__)) | # define _unused __attribute__((__unused__)) | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
| @@ -27,7 +27,7 @@ | |||||||
| #ifndef __EINFO_H__ | #ifndef __EINFO_H__ | ||||||
| #define __EINFO_H__ | #define __EINFO_H__ | ||||||
|  |  | ||||||
| #ifdef __GNUC__ | #if defined(__GNUC__) || defined(__PCC__) | ||||||
| # define __EINFO_PRINTF  __attribute__ ((__format__ (__printf__, 1, 2))) | # define __EINFO_PRINTF  __attribute__ ((__format__ (__printf__, 1, 2))) | ||||||
| # define __EINFO_XPRINTF __attribute__ ((__noreturn__, __format__ (__printf__, 1, 2))) | # define __EINFO_XPRINTF __attribute__ ((__noreturn__, __format__ (__printf__, 1, 2))) | ||||||
| # define __EEND_PRINTF   __attribute__ ((__format__ (__printf__, 2, 3))) | # define __EEND_PRINTF   __attribute__ ((__format__ (__printf__, 2, 3))) | ||||||
|   | |||||||
| @@ -27,7 +27,7 @@ | |||||||
| #if lint | #if lint | ||||||
| # define _noreturn | # define _noreturn | ||||||
| #endif | #endif | ||||||
| #if __GNUC__ > 2 || defined(__INTEL_COMPILER) | #if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__) | ||||||
| # define _noreturn __attribute__ ((__noreturn__)) | # define _noreturn __attribute__ ((__noreturn__)) | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user