]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Support the PCC compiler.
authorRoy Marples <roy@marples.name>
Wed, 20 Feb 2008 17:49:51 +0000 (17:49 +0000)
committerRoy Marples <roy@marples.name>
Wed, 20 Feb 2008 17:49:51 +0000 (17:49 +0000)
common.h
logger.h
mk/prog.mk

index 0a59a75aa82e44eb07b69d00d5b2e7fc4f9dbfa9..c9f8180b928f7c639d74597c6850fb28e504156f 100644 (file)
--- a/common.h
+++ b/common.h
@@ -33,7 +33,7 @@
 #include <stdio.h>
 #include <string.h>
 
-#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
+#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__)
 # define _unused __attribute__((__unused__))
 #endif
 
index aa91eb86c02135b00e94ade068cb41c013294597..f1801bf8e6d9a8955fc2e577cfd9209e61840a97 100644 (file)
--- 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)
index 978c1b6a0032fdca57825e968049e968c8f25322..6f2560cd1bc257e64bf90e42f5c344cfec5e7ad2 100644 (file)
@@ -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}