]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(OPTARG_POSIX, OBSOLETE_OPTION_WARNINGS): New macros.
authorJim Meyering <jim@meyering.net>
Sat, 2 Feb 2002 00:06:50 +0000 (00:06 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Feb 2002 00:06:50 +0000 (00:06 +0000)
src/system.h

index caf50aec74a3e8eb05fe4b0d35fa2399a5e5a373..59d63809e4d46cf8625f1bd9f8f58277684596d4 100644 (file)
 # define POSIX2_VERSION (_POSIX2_VERSION ? _POSIX2_VERSION : 2147483647)
 #endif
 
+/* "::" if a short option can take an optional argument, ":" if the
+   argument is required.  "::" is mostly obsolete with POSIX
+   1003.1-2001, which in most cases does not allow short options with
+   optional arguments.  */
+#if POSIX2_VERSION < 200112
+# define OPTARG_POSIX "::"
+#else
+# define OPTARG_POSIX ":"
+#endif
+
+/* If nonzero, warn when obsolete options are detected.  */
+#ifndef OBSOLETE_OPTION_WARNINGS
+# define OBSOLETE_OPTION_WARNINGS 1
+#endif
+
 #ifndef STDIN_FILENO
 # define STDIN_FILENO 0
 #endif