summaryrefslogtreecommitdiff
path: root/include/features.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/features.h')
-rw-r--r--include/features.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/features.h b/include/features.h
index 634590f49..f51ebd7e2 100644
--- a/include/features.h
+++ b/include/features.h
@@ -24,19 +24,27 @@
#define __P(x) x
#define __PMT(x) x
+#ifndef __const
#define __const const
+#endif
/* Almost ansi */
#if __STDC__ != 1
+#ifndef const
#define const
+#endif
#define volatile
#endif
#else /* K&R */
#define __P(x) ()
+#ifndef __const
#define __const
+#endif
+#ifndef const
#define const
+#endif
#define volatile
#endif