codekingpro/portable-devtools
116k
1/*2 * Portions Copyright (c) 1987, 1993, 19943 * The Regents of the University of California. All rights reserved.4 *5 * Portions Copyright (c) 2003-2023, PostgreSQL Global Development Group6 *7 * src/include/getopt_long.h8 */9#ifndef GETOPT_LONG_H10#define GETOPT_LONG_H11 12#include "pg_getopt.h"13 14#ifndef HAVE_STRUCT_OPTION15 16struct option17{18 const char *name;19 int has_arg;20 int *flag;21 int val;22};23 24#define no_argument 025#define required_argument 126#define optional_argument 227#endif28 29#ifndef HAVE_GETOPT_LONG30 31extern int getopt_long(int argc, char *const argv[],32 const char *optstring,33 const struct option *longopts, int *longindex);34#endif35 36#endif /* GETOPT_LONG_H */37 