123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- #ifdef WIN32
- #define HAVE_IN_PORT_T
- #define HAVE_SOCKLEN_T
- #define __STDC__ 1
- #else
- #include "mpeg4ip.h"
- #endif
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #ifdef HAVE_GETOPT_H
- #include <getopt.h>
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if !defined(HAVE_GETOPT) && !defined(HAVE_GETOPT_LONG) && !defined(HAVE_GETOPT_LONG_ONLY)
- extern char *optarg;
- extern int optind;
- extern int opterr;
- extern int optopt;
- #endif
- #if !defined(HAVE_GETOPT_LONG) && !defined(HAVE_GETOPT_LONG_ONLY)
- struct option
- {
- # if defined __STDC__ && __STDC__
- const char *name;
- # else
- char *name;
- # endif
-
- int has_arg;
- int *flag;
- int val;
- };
- #ifndef no_argument
- # define no_argument 0
- # define required_argument 1
- # define optional_argument 2
- #endif
- #endif
- #ifndef HAVE_GETOPT
- extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
- #endif
- #ifndef HAVE_GETOPT_LONG
- extern int getopt_long (int ___argc, char *const *___argv, const char *__shortopts,
- const struct option *__longopts, int *__longind);
- #endif
- #ifndef HAVE_GETOPT_LONG_ONLY
- extern int getopt_long_only (int ___argc, char *const *___argv,
- const char *__shortopts,
- const struct option *__longopts, int *__longind);
- #endif
- #if !defined(HAVE_GETOPT) || !defined(HAVE_GETOPT_LONG) || !defined(HAVE_GETOPT_LONG_ONLY)
- extern int _getopt_internal (int ___argc, char *const *argv,
- const char *optstring,
- const struct option *longopts,
- int *longind, int long_only);
- #endif
- #ifdef __cplusplus
- }
- #endif
|