mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
Placed guards around strdup declaration to avoid compiler errors on sane
systems.
This commit is contained in:
parent
64ab51965a
commit
184cef59d6
@ -156,7 +156,9 @@ struct CommonRec {
|
||||
#ifdef RDOFF_UTILS
|
||||
|
||||
/* Some systems don't define this automatically */
|
||||
#if !defined(strdup)
|
||||
extern char *strdup(const char *);
|
||||
#endif
|
||||
|
||||
typedef union RDFHeaderRec {
|
||||
char type; /* invariant throughout all below */
|
||||
|
Loading…
x
Reference in New Issue
Block a user