From: Roy Marples Date: Fri, 22 Feb 2008 11:45:18 +0000 (+0000) Subject: PCC compiler fixes. X-Git-Tag: v3.2.3~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ccd6ec66f331bdf2232dd886380b94d613ead77;p=thirdparty%2Fdhcpcd.git PCC compiler fixes. --- diff --git a/common.h b/common.h index c9f8180b..fa8f9281 100644 --- a/common.h +++ b/common.h @@ -33,8 +33,10 @@ #include #include -#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__) +#if __GNUC__ > 2 || defined(__INTEL_COMPILER) # define _unused __attribute__((__unused__)) +#else +# define _unused #endif #define HAVE_STRLCPY diff --git a/logger.h b/logger.h index f1801bf8..989f68d4 100644 --- a/logger.h +++ b/logger.h @@ -28,7 +28,7 @@ #ifndef LOGGER_H #define LOGGER_H -#if defined(__GNUC__) || defined(__PCC__) +#if defined(__GNUC__) # define _PRINTF_LIKE(_one, _two) __attribute__ ((__format__ (__printf__, _one, _two))) #else # define _PRINTF_LIKE(_one, _two)