Skip to content

Commit

Permalink
fix compilation with mingw (#17)
Browse files Browse the repository at this point in the history
`_Sleep' referenced in section `.text' of libargp.a(argp-parse.c.o): defined in discarded section `.text' of /.../lib/libkernel32.a(dvclds01385.o)

https://stackoverflow.com/questions/31085538/function-referenced-in-section-text-of-defined-in-discarded-section-te
  • Loading branch information
wdlkmpx committed Jun 14, 2023
1 parent 58c5081 commit 2c11c34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions argp-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ alloca();
#endif
#endif

#ifdef _WIN32
#include <windows.h>
#endif
#include <stdlib.h>
#include <string.h>
#if defined(HAVE_UNISTD_H)
Expand Down

0 comments on commit 2c11c34

Please sign in to comment.