Changeset 1076
- Timestamp:
- Sep 21, 2006, 9:54:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/test/toilet.c
r1075 r1076 48 48 unsigned flag_gay = 0; 49 49 50 #if defined(HAVE_GETOPT_H) 50 51 for(;;) 51 52 { 52 # ifdef HAVE_GETOPT_LONG53 # define MOREINFO "Try `%s --help' for more information.\n"53 # ifdef HAVE_GETOPT_LONG 54 # define MOREINFO "Try `%s --help' for more information.\n" 54 55 int option_index = 0; 55 56 static struct option long_options[] = … … 63 64 64 65 int c = getopt_long(argc, argv, "ghv", long_options, &option_index); 65 # else66 # define MOREINFO "Try `%s -h' for more information.\n"66 # else 67 # define MOREINFO "Try `%s -h' for more information.\n" 67 68 int c = getopt(argc, argv, "ghv"); 68 # endif69 # endif 69 70 if(c == -1) 70 71 break; … … 101 102 } 102 103 } 104 #else 105 # define MOREINFO "Usage: %s message...\n" 106 int optind = 1; 107 #endif 103 108 104 109 if(optind >= argc)
Note: See TracChangeset
for help on using the changeset viewer.