aboutsummaryrefslogtreecommitdiffhomepage
path: root/set_color.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-08-28 21:43:05 +1000
committerGravatar axel <axel@liljencrantz.se>2006-08-28 21:43:05 +1000
commit548e379d6a0ef2e8523f261d84c2ea5852f5577d (patch)
treeb218f930017cb56fa0c956e92f168d368da68f62 /set_color.c
parent202d29de8886e9574639f5f6877a05c9fc3e79b0 (diff)
Provide fallback version of getopt_long instead of checking for it's presense every time it is used
darcs-hash:20060828114305-ac50b-f4aad19e936fa42bbe84e51e72aa32445a469527.gz
Diffstat (limited to 'set_color.c')
-rw-r--r--set_color.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/set_color.c b/set_color.c
index ab376a9d..54ca87ec 100644
--- a/set_color.c
+++ b/set_color.c
@@ -153,7 +153,6 @@ int main( int argc, char **argv )
while( 1 )
{
-#ifdef HAVE_WORKING_GETOPT_LONG
static struct option
long_options[] =
{
@@ -194,11 +193,7 @@ int main( int argc, char **argv )
GETOPT_STRING,
long_options,
&opt_index );
-#else
- int opt = getopt( argc,
- argv,
- GETOPT_STRING );
-#endif
+
if( opt == -1 )
break;