Skip to content

Commit

Permalink
Add the DARWIN define for strdup
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Dec 21, 2023
1 parent 6af9f8e commit d98b2db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/colorname.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define _DEFAULT_SOURCE 1 /* Make sure strdup() is in string.h */
#endif
#define _XOPEN_SOURCE 500 /* Make sure strdup() is in string.h */
#define _DARWIN_C_SOURCE /* Make sure strdup() is in string.h */

#include "netpbm/pm_c_util.h"
#include <ctype.h>
Expand Down

0 comments on commit d98b2db

Please sign in to comment.