summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-07 17:06:24 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-07 17:06:24 -0500
commitdf54a68c5ad145a0edbfbbb32261dc45c49b7bcb (patch)
tree55efe8e97d75874f9508dc513a7cfbe248b6ab56
parent8a2222ac0e6af243721b1b6e531736d933f98b72 (diff)
make version ranges [inc,exc), so it's [added, removed)
-rw-r--r--ftm.m410
1 files changed, 5 insertions, 5 deletions
diff --git a/ftm.m4 b/ftm.m4
index 68dee163..c8a34455 100644
--- a/ftm.m4
+++ b/ftm.m4
@@ -1,21 +1,21 @@
define(`STDC',
`ifelse($#, 2,
- `ifelse($1, 1, `!defined __STDC_VERSION__ || __STDC_VERSION__ <= $2', `defined __STDC_VERSION__ && $1 <= __STDC_VERSION__ && __STDC_VERSION__ <= $2')',
+ `ifelse($1, 1, `!defined __STDC_VERSION__ || __STDC_VERSION__ < $2', `defined __STDC_VERSION__ && $1 <= __STDC_VERSION__ && __STDC_VERSION__ < $2')',
`ifelse($1, 1, `', `defined __STDC_VERSION__ && $1 <= __STDC_VERSION__')')
')dnl
define(`POSIX',
`ifelse($#, 2,
- `ifelse($1, 1, `defined _POSIX_SOURCE && (!defined _POSIX_C_SOURCE || _POSIX_C_SOURCE <= $2)', `defined _POSIX_C_SOURCE && $1 <= _POSIX_C_SOURCE && _POSIX_C_SOURCE <= $2')',
+ `ifelse($1, 1, `defined _POSIX_SOURCE && (!defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < $2)', `defined _POSIX_C_SOURCE && $1 <= _POSIX_C_SOURCE && _POSIX_C_SOURCE < $2')',
`ifelse($1, 1, `defined _POSIX_SOURCE', `defined _POSIX_C_SOURCE && $1 <= _POSIX_C_SOURCE')')
')dnl
define(`XEXT', `defined _XOPEN_SOURCE && ((defined _XOPEN_SOURCE_EXTENDED && _XOPEN_SOURCE_EXTENDED == 1) || 500 <= _XOPEN_SOURCE)')
define(`XOPEN',
`ifelse($#, 2,
- `ifelse($1, 4, `defined _XOPEN_SOURCE && _XOPEN_SOURCE <= $2',
- `ifelse($1, 400, `XEXT() && _XOPEN_SOURCE <= $2',
- `defined _XOPEN_SOURCE && $1 <= _XOPEN_SOURCE && _XOPEN_SOURCE <= $2')')',
+ `ifelse($1, 4, `defined _XOPEN_SOURCE && _XOPEN_SOURCE < $2',
+ `ifelse($1, 400, `XEXT() && _XOPEN_SOURCE < $2',
+ `defined _XOPEN_SOURCE && $1 <= _XOPEN_SOURCE && _XOPEN_SOURCE < $2')')',
`ifelse($1, 4, `defined _XOPEN_SOURCE',
`ifelse($1, 400, `XEXT())',
`defined _XOPEN_SOURCE && $1 <= _XOPEN_SOURCE')')')