commit | author | age
|
114092
|
1 |
--- perl-5.22.0.orig/perl.h 2015-05-13 22:19:30.000000000 +0200 |
MT |
2 |
+++ perl-5.22.0/perl.h 2015-11-01 01:01:57.988167534 +0100 |
55c4f3
|
3 |
@@ -3449,6 +3449,12 @@ |
114092
|
4 |
# endif |
MT |
5 |
#endif |
|
6 |
|
|
7 |
+#ifdef __SUNPRO_C |
|
8 |
+# undef HASATTRIBUTE_DEPRECATED |
|
9 |
+# undef HASATTRIBUTE_FORMAT |
|
10 |
+# undef HASATTRIBUTE_WARN_UNUSED_RESULT |
|
11 |
+#endif |
|
12 |
+ |
|
13 |
#ifdef HASATTRIBUTE_DEPRECATED |
|
14 |
# define __attribute__deprecated__ __attribute__((deprecated)) |
|
15 |
#endif |
55c4f3
|
16 |
@@ -3523,6 +3529,10 @@ |
114092
|
17 |
# define __attribute__format__null_ok__(x,y,z) |
MT |
18 |
#endif |
|
19 |
|
|
20 |
+#ifdef __SUNPRO_C |
|
21 |
+# undef HAS_BUILTIN_EXPECT |
|
22 |
+#endif |
|
23 |
+ |
|
24 |
#ifdef HAS_BUILTIN_EXPECT |
|
25 |
# define EXPECT(expr,val) __builtin_expect(expr,val) |
|
26 |
#else |
|
27 |
--- perl-5.22.0.orig/perlio.h 2015-05-13 22:19:30.000000000 +0200 |
|
28 |
+++ perl-5.22.0/perlio.h 2015-11-01 00:58:16.813781337 +0100 |
|
29 |
@@ -193,6 +193,10 @@ |
|
30 |
|
|
31 |
/* --------------------- Now prototypes for functions --------------- */ |
|
32 |
|
|
33 |
+#ifdef __SUNPRO_C |
|
34 |
+# undef HASATTRIBUTE_FORMAT |
|
35 |
+#endif |
|
36 |
+ |
|
37 |
START_EXTERN_C |
|
38 |
#ifndef __attribute__format__ |
|
39 |
# ifdef HASATTRIBUTE_FORMAT |