Skip to content

Commit

Permalink
Try to reduce compilation conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
totalspectrum committed Oct 8, 2023
1 parent 90e1a1e commit 2d73bbf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions util/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,18 @@ int dofmt( FmtPutchar func, void *funcarg, const char *fmt, va_ptr args );
int lltoa_prec( unsigned long long x, char *buf, unsigned base, int prec );

// these are library functions on most systems
// a few make defines for them in <string.h>, so check for defines
// in order to reduce conflicts

#ifndef strdup
extern char *strdup(const char *);
#endif
#ifndef strcasecmp
extern int strcasecmp(const char *s1, const char *s2);
#endif
#ifndef strncasecmp
extern int strncasecmp(const char *s1, const char *s2, size_t n);
#endif

// make a string upper case (in place)
char* strupr(char *origstr);
Expand Down

0 comments on commit 2d73bbf

Please sign in to comment.