From: Roy Marples Date: Wed, 20 Feb 2008 17:49:51 +0000 (+0000) Subject: Support the PCC compiler. X-Git-Tag: v3.2.3~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c43c8baa57b46686bb6a6a66f15a2f597c0181a;p=thirdparty%2Fdhcpcd.git Support the PCC compiler. --- diff --git a/common.h b/common.h index 0a59a75a..c9f8180b 100644 --- a/common.h +++ b/common.h @@ -33,7 +33,7 @@ #include #include -#if __GNUC__ > 2 || defined(__INTEL_COMPILER) +#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__) # define _unused __attribute__((__unused__)) #endif diff --git a/logger.h b/logger.h index aa91eb86..f1801bf8 100644 --- a/logger.h +++ b/logger.h @@ -28,7 +28,7 @@ #ifndef LOGGER_H #define LOGGER_H -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__PCC__) # define _PRINTF_LIKE(_one, _two) __attribute__ ((__format__ (__printf__, _one, _two))) #else # define _PRINTF_LIKE(_one, _two) diff --git a/mk/prog.mk b/mk/prog.mk index 978c1b6a..6f2560cd 100644 --- a/mk/prog.mk +++ b/mk/prog.mk @@ -12,7 +12,7 @@ INSTALL?= install all: ${PROG} ${MAN} ${PROG}: ${SCRIPTS} ${OBJS} - ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} + ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} _proginstall: ${PROG} ${INSTALL} -d ${DESTDIR}${BINDIR}