Skip to content

Commit 08b72b2

Browse files
authored
Merge pull request #9 from ajmay81/mingw
Fixes for mingw
2 parents 98d2d28 + 5a3ecaf commit 08b72b2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

gk_arch.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
#endif
4343
#include <inttypes.h>
4444
#include <sys/types.h>
45+
#ifndef __MINGW32__
4546
#include <sys/resource.h>
47+
#endif
4648
#include <sys/time.h>
4749
#include <unistd.h>
4850
#endif

gk_getopt.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ struct gk_option {
5252

5353

5454
/* Function prototypes */
55-
extern int gk_getopt(int __argc, char **__argv, char *__shortopts);
56-
extern int gk_getopt_long(int __argc, char **__argv, char *__shortopts,
57-
struct gk_option *__longopts, int *__longind);
58-
extern int gk_getopt_long_only (int __argc, char **__argv,
59-
char *__shortopts, struct gk_option *__longopts, int *__longind);
55+
extern int gk_getopt(int argc, char **argv, char *shortopts);
56+
extern int gk_getopt_long(int argc, char **argv, char *shortopts,
57+
struct gk_option *longopts, int *longind);
58+
extern int gk_getopt_long_only (int argc, char **argv,
59+
char *shortopts, struct gk_option *longopts, int *longind);
6060

6161

6262

0 commit comments

Comments
 (0)