summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-02-02 00:06:50 +0000
committerJim Meyering <jim@meyering.net>2002-02-02 00:06:50 +0000
commit793fbbc7f29c04426d0ec01279576e7793b0e25a (patch)
tree35261582edcb530871ec593e0af85dc642fb6ea4 /src/system.h
parent20c2cd43a91b4015fc3dfe4ac41934b2f9580ca9 (diff)
downloadcoreutils-793fbbc7f29c04426d0ec01279576e7793b0e25a.tar.xz
(OPTARG_POSIX, OBSOLETE_OPTION_WARNINGS): New macros.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index caf50aec7..59d63809e 100644
--- a/src/system.h
+++ b/src/system.h
@@ -44,6 +44,21 @@
# 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