diff options
Diffstat (limited to 'contrib/libreadline/rlstdc.h')
-rw-r--r-- | contrib/libreadline/rlstdc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/libreadline/rlstdc.h b/contrib/libreadline/rlstdc.h index dac8e98..a1ca208 100644 --- a/contrib/libreadline/rlstdc.h +++ b/contrib/libreadline/rlstdc.h @@ -36,4 +36,16 @@ # endif #endif +#if !defined (__STDC__) && !defined (__cplusplus) +# if defined (__GNUC__) /* gcc with -traditional */ +# if !defined (const) +# define const __const +# endif /* !const */ +# else /* !__GNUC__ */ +# if !defined (const) +# define const +# endif /* !const */ +# endif /* !__GNUC__ */ +#endif /* !__STDC__ && !__cplusplus */ + #endif /* !_RL_STDC_H_ */ |