[cxx] Make the externC of icalls configuration-dependent instead of always. (#17573)
[mono-project.git] / msvc / getopt_long.h
blobae7941a0698490463b9dfc70c364094c6bbddb02
1 /*
2 * Portions Copyright (c) 1987, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
5 * Portions Copyright (c) 2003-2007, PostgreSQL Global Development Group
7 * $PostgreSQL: pgsql/src/include/getopt_long.h,v 1.8 2007/01/05 22:19:50 momjian Exp $
8 */
9 #ifndef GETOPT_LONG_H
10 #define GETOPT_LONG_H
12 #ifdef HAVE_GETOPT_H
13 #include <getopt.h>
14 #endif
16 /* These are picked up from the system's getopt() facility. */
17 extern int opterr;
18 extern int optind;
19 extern int optopt;
20 extern char *optarg;
22 /* Some systems have this, otherwise you need to define it somewhere. */
23 extern int optreset;
25 #ifndef HAVE_STRUCT_OPTION
27 struct option
29 const char *name;
30 int has_arg;
31 int *flag;
32 int val;
35 #define no_argument 0
36 #define required_argument 1
37 #endif
39 #ifndef HAVE_GETOPT_LONG
41 extern int getopt_long(int argc, char *const argv[],
42 const char *optstring,
43 const struct option * longopts, int *longindex);
44 #endif
46 #endif /* GETOPT_LONG_H */