Commit 2b6ede1d by Michael Meissner

Add extra protection in case strrchr already defined

From-SVN: r19343
parent 763d7ce8
...@@ -78,11 +78,13 @@ Boston, MA 02111-1307, USA. */ ...@@ -78,11 +78,13 @@ Boston, MA 02111-1307, USA. */
but it normally does declare it. This means that configure thinks we don't but it normally does declare it. This means that configure thinks we don't
need to declare it. Favor using strrchr if it is available. */ need to declare it. Favor using strrchr if it is available. */
#ifndef strrchr
#ifndef HAVE_STRRCHR #ifndef HAVE_STRRCHR
#ifdef HAVE_RINDEX #ifdef HAVE_RINDEX
#define strrchr rindex #define strrchr rindex
#endif #endif
#endif #endif
#endif
/* Include getopt.h for the sake of getopt_long. /* Include getopt.h for the sake of getopt_long.
We don't need the declaration of getopt, and it could conflict We don't need the declaration of getopt, and it could conflict
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment