* eregex.h [!USE_INCLUDED_REGEX]: Include <regex.h>.

* regex.c: Compile only if USE_INCLUDED_REGEX is defined.
This commit is contained in:
Andrew V. Samoilov 2002-03-26 14:13:10 +00:00
parent 20154c6f50
commit 3c239079b2
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-03-26 Andrew V. Samoilov <kai@cmail.ru>
* eregex.h [!USE_INCLUDED_REGEX]: Include <regex.h>.
* regex.c: Compile only if USE_INCLUDED_REGEX is defined.
2002-03-25 Andrew V. Samoilov <kai@cmail.ru>
* complete.c (insert_text): Fix buffer overflow.

View File

@ -19,6 +19,9 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#ifndef USE_INCLUDED_REGEX
#include <regex.h>
#else
#ifndef _REGEX_H
#define _REGEX_H 1
@ -563,3 +566,4 @@ version-control: t
trim-versions-without-asking: nil
End:
*/
#endif

View File

@ -32,6 +32,7 @@
# include <config.h>
#endif
#ifdef USE_INCLUDED_REGEX
#ifndef PARAMS
# if defined __GNUC__ || (defined __STDC__ && __STDC__)
# define PARAMS(args) args
@ -8358,3 +8359,4 @@ weak_alias (__regfree, regfree)
# undef WCHAR
# define DEFINED_ONCE
#endif /* USE_INCLUDED_REGEX */