Displaying 1 result from an estimated 1 matches for "local_getopt".
2000 Dec 30
0
More on getopt/getopt_long
...ng my bias here of stealing oggenc C
code for inclusion in a C++ project).
-----
getopt_long(), however, only appears to be in Linux. Hence, I think the
real issues for oggenc/ogg123 are:
1. Check if there is <getopt.h>, and conditionally #include either the
local version (rename it to local_getopt.h or something) or the
OS/compiler version (<getopt.h>)
2. Check whether there is a getopt_long() defined by the OS/compiler, and
conditionally compile the local copy if it is not
It would seem correct to separate out getopt_long() and its necessary
support functions into standalone .c...