Support the PCC compiler.

This commit is contained in:
Roy Marples 2008-02-20 17:49:51 +00:00
parent 4e0e64a9d9
commit 8c43c8baa5
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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)

View 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}