Changeset 80133
- Timestamp:
- 07/04/11 23:23:18 (4 years ago)
- Location:
- trunk/dports/devel/gperf
- Files:
-
- 2 edited
-
Portfile (modified) (1 diff)
-
files/c99.patch (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/devel/gperf/Portfile
r80132 r80133 6 6 name gperf 7 7 version 3.0.4 8 revision 18 revision 2 9 9 categories devel 10 10 maintainers mcalhoun openmaintainer -
trunk/dports/devel/gperf/files/c99.patch
r80132 r80133 1 1 --- src/output.cc.orig 2011-07-03 10:13:13.000000000 -0700 2 2 +++ src/output.cc 2011-07-03 10:17:43.000000000 -0700 3 @@ -745,12 +745,1 2@@ Output::output_hash_function () const3 @@ -745,12 +745,10 @@ Output::output_hash_function () const 4 4 if (option[CPLUSPLUS]) 5 5 printf ("inline "); 6 6 else if (option[KRC] | option[C] | option[ANSIC]) 7 7 - printf ("#ifdef __GNUC__\n" 8 + printf ("#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__ GNUC_STDC_INLINE__)\n"8 + printf ("#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)\n" 9 9 + "inline\n" 10 10 + "#elif defined(__GNUC__)\n" … … 12 12 - "#else\n" 13 13 - "#ifdef __cplusplus\n" 14 + "#elif defined(__cplusplus)\n" 15 "inline\n" 14 - "inline\n" 16 15 - "#endif\n" 17 16 "#endif\n"); 18 17 19 18 if (/* The function does not use the 'str' argument? */ 20 @@ -1892,12 +1892,13 @@ Output::output_lookup_function () const21 warning: C99 inline functions are not supported; using GNU8922 warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute23 It defines a macro __GNUC_GNU_INLINE__ to indicate this situation. */24 - printf ("#ifdef __GNUC__\n"25 - "__inline\n"26 - "#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__\n"27 - "__attribute__ ((__gnu_inline__))\n"28 - "#endif\n"29 - "#endif\n");30 + printf ("#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC_STDC_INLINE__)\n"31 + "static inline\n"32 + "#elif defined(__GNUC__)\n"33 + "__inline\n"34 + "#elif defined(__cplusplus)\n"35 + "inline\n"36 + "#endif\n");37 38 printf ("%s%s\n",39 const_for_struct, _return_type);
Note: See TracChangeset
for help on using the changeset viewer.

