Lines 1-25
Link Here
|
1 |
Place this text as ports/devel/mcpp/files/patch-src-system.H. |
|
|
2 |
I copy and paste the file here, since attaching file does not work somehow. |
3 |
TABs are lost in this. Please en-tab in the first two tag-lines. |
4 |
|
5 |
--- src/system.H.orig Wed May 2 21:37:29 2007 |
6 |
+++ src/system.H Sun Jun 3 16:51:33 2007 |
7 |
@@ -49,7 +49,16 @@ |
8 |
|
9 |
/* Some system has a wrong definition of UCHAR_MAX. See cpp-test.html#5.1.3 */ |
10 |
#if UCHARMAX < -255 |
11 |
+#if __FreeBSD__ |
12 |
+/* |
13 |
+ * This is a temporary patch for FreeBSD on amd64, alpha, ia64 and sparc64. |
14 |
+ * limits.h of these systems wrongly define UCHAR_MAX as 255U. |
15 |
+ */ |
16 |
+#undef UCHARMAX |
17 |
+#define UCHARMAX 255 |
18 |
+#else |
19 |
#error "The definition of UCHARMAX (possibly UCHAR_MAX too) is wrong. Define it as signed int value as 255, not as unsigned value as 255U." |
20 |
+#endif |
21 |
#endif |
22 |
|
23 |
/* |
24 |
|
25 |
|