| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#if !defined( _VHDITOOLS_GETOPT_H ) |
| 23 |
#define _VHDITOOLS_GETOPT_H |
| 24 |
|
| 25 |
#include <common.h> |
| 26 |
#include <types.h> |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
#if defined( HAVE_UNISTD_H ) |
| 31 |
#include <unistd.h> |
| 32 |
#endif |
| 33 |
|
| 34 |
#if defined( __cplusplus ) |
| 35 |
extern "C" { |
| 36 |
#endif |
| 37 |
|
| 38 |
#if defined( HAVE_GETOPT ) |
| 39 |
#define vhditools_getopt( argument_count, argument_values, options_string ) \ |
| 40 |
getopt( argument_count, argument_values, options_string ) |
| 41 |
|
| 42 |
#else |
| 43 |
|
| 44 |
#if !defined( __CYGWIN__ ) |
| 45 |
extern int optind; |
| 46 |
extern system_character_t *optarg; |
| 47 |
extern system_integer_t optopt; |
| 48 |
|
| 49 |
#else |
| 50 |
int optind; |
| 51 |
system_character_t *optarg; |
| 52 |
system_integer_t optopt; |
| 53 |
|
| 54 |
#endif |
| 55 |
|
| 56 |
system_integer_t vhditools_getopt( |
| 57 |
int argument_count, |
| 58 |
system_character_t * const argument_values[], |
| 59 |
const system_character_t *options_string ); |
| 60 |
|
| 61 |
#endif |
| 62 |
|
| 63 |
#if defined( __cplusplus ) |
| 64 |
} |
| 65 |
#endif |
| 66 |
|
| 67 |
#endif |
| 68 |
|