[Midnightbsd-cvs] src: cdefs.h: Make some changes for PCC compiler.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue May 13 00:04:14 EDT 2008


Log Message:
-----------
Make some changes for PCC compiler.  It does not support a number of things, so disable them.

This is similar to the steps necessary on NetBSD 3.0.

Modified Files:
--------------
    src/sys/sys:
        cdefs.h (r1.3 -> r1.4)

-------------- next part --------------
Index: cdefs.h
===================================================================
RCS file: /home/cvs/src/sys/sys/cdefs.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -L sys/sys/cdefs.h -L sys/sys/cdefs.h -u -r1.3 -r1.4
--- sys/sys/cdefs.h
+++ sys/sys/cdefs.h
@@ -141,7 +141,7 @@
 #define	__const		const		/* define reserved names to standard */
 #define	__signed	signed
 #define	__volatile	volatile
-#if defined(__cplusplus)
+#if defined(__cplusplus) || defined(__PCC__)
 #define	__inline	inline		/* convert to C++ keyword */
 #else
 #if !(defined(__CC_SUPPORTS___INLINE))
@@ -222,6 +222,11 @@
 #define __aligned(x)	__attribute__((__aligned__(x)))
 #define __section(x)	__attribute__((__section__(x)))
 #endif
+#if defined(__PCC__)
+#define __packed	/* not yet */
+#define __aligned(x)	/* not yet */
+#define __section(x)	/* not yet */
+#endif
 #endif
 
 #if __GNUC_PREREQ__(2, 96)


More information about the Midnightbsd-cvs mailing list