Mercurial > hg > octave-jordi > gnulib-hg
comparison lib/regex.h @ 7692:85409a7d11bc
* lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 27 Nov 2006 19:41:42 +0000 |
parents | b4806b1ec9e4 |
children | 7dcf8a1f2f5e |
comparison
equal
deleted
inserted
replaced
7691:33b654c2cba8 | 7692:85409a7d11bc |
---|---|
637 #endif | 637 #endif |
638 /* gcc 3.1 and up support the [restrict] syntax. Don't trust | 638 /* gcc 3.1 and up support the [restrict] syntax. Don't trust |
639 sys/cdefs.h's definition of __restrict_arr, though, as it | 639 sys/cdefs.h's definition of __restrict_arr, though, as it |
640 mishandles gcc -ansi -pedantic. */ | 640 mishandles gcc -ansi -pedantic. */ |
641 #undef __restrict_arr | 641 #undef __restrict_arr |
642 #if (defined __GNUG__ \ | 642 #if ((199901L <= __STDC_VERSION__ \ |
643 || (__STDC_VERSION__ < 199901L \ | 643 || ((3 < __GNUC__ || (3 == __GNUC__ && 1 <= __GNUC_MINOR__)) \ |
644 && (__STRICT_ANSI__ \ | 644 && !__STRICT_ANSI__)) \ |
645 || (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 1))))) | 645 && !defined __GNUG__) |
646 # define __restrict_arr __restrict | |
647 #else | |
646 # define __restrict_arr | 648 # define __restrict_arr |
647 #else | |
648 # define __restrict_arr __restrict | |
649 #endif | 649 #endif |
650 | 650 |
651 /* POSIX compatibility. */ | 651 /* POSIX compatibility. */ |
652 extern int regcomp (regex_t *__restrict __preg, | 652 extern int regcomp (regex_t *__restrict __preg, |
653 const char *__restrict __pattern, | 653 const char *__restrict __pattern, |