Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5e5bb97

Browse files
committedJan 8, 2023
simplify string.h inclusion
1 parent e3ba8f2 commit 5e5bb97

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed
 

‎src/buildblock/getopt.c

+1-14
Original file line numberDiff line numberDiff line change
@@ -193,20 +193,7 @@ static enum
193193
/* Value of POSIXLY_CORRECT environment variable. */
194194
static char *posixly_correct;
195195

196-
#ifdef __GNU_LIBRARY__
197-
/* We want to avoid inclusion of string.h with non-GNU libraries
198-
because there are many ways it can cause trouble.
199-
On some systems, it contains special magic macros that don't work
200-
in GCC. */
201-
# include <string.h>
202-
# define my_index strchr
203-
#else
204-
205-
# if HAVE_STRING_H || WIN32 /* Pete Wilson mod 7/28/02 */
206-
# include <string.h>
207-
# else
208-
# include <strings.h>
209-
# endif
196+
#include <string.h>
210197

211198
/* Avoid depending on library functions or files
212199
whose names are inconsistent. */

0 commit comments

Comments
 (0)
Please sign in to comment.