mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-12-12 03:13:52 +08:00
Support the PCC compiler.
This commit is contained in:
parent
4e0e64a9d9
commit
8c43c8baa5
2
common.h
2
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
|
||||
|
||||
|
2
logger.h
2
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)
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user