aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/includes/rc-misc.h2
-rw-r--r--src/libeinfo/einfo.h2
-rw-r--r--src/rc/_usage.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h
index 1ffe48de..59c3e397 100644
--- a/src/includes/rc-misc.h
+++ b/src/includes/rc-misc.h
@@ -70,7 +70,7 @@
#ifdef lint
# define _unused
#endif
-#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
+#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__)
# define _unused __attribute__((__unused__))
#endif
diff --git a/src/libeinfo/einfo.h b/src/libeinfo/einfo.h
index ca2487b4..49ef03fb 100644
--- a/src/libeinfo/einfo.h
+++ b/src/libeinfo/einfo.h
@@ -27,7 +27,7 @@
#ifndef __EINFO_H__
#define __EINFO_H__
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__PCC__)
# define __EINFO_PRINTF __attribute__ ((__format__ (__printf__, 1, 2)))
# define __EINFO_XPRINTF __attribute__ ((__noreturn__, __format__ (__printf__, 1, 2)))
# define __EEND_PRINTF __attribute__ ((__format__ (__printf__, 2, 3)))
diff --git a/src/rc/_usage.c b/src/rc/_usage.c
index 0e39271d..6dcb63aa 100644
--- a/src/rc/_usage.c
+++ b/src/rc/_usage.c
@@ -27,7 +27,7 @@
#if lint
# define _noreturn
#endif
-#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
+#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__)
# define _noreturn __attribute__ ((__noreturn__))
#endif