FreeBSD compilation fixes: rename re_comp and re_exec

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-01-07 12:36:03 +00:00
parent fa78de8249
commit fbeb9303dd
2 changed files with 12 additions and 0 deletions

View File

@@ -76,6 +76,12 @@
#endif
#define __REG_NOFRONT /* don't want regcomp() and regexec() */
#define _ANSI_ARGS_(x) x
/* under FreeBSD re_comp and re_exec are declared (differently) in unistd.h */
#ifdef __FreeBSD__
#define re_comp wx_re_comp
#define re_exec wx_re_exec
#endif
/* --- end --- */
/* internal character type and related */

View File

@@ -115,6 +115,12 @@ extern "C" {
#endif
#define __REG_NOFRONT /* don't want regcomp() and regexec() */
#define _ANSI_ARGS_(x) x
/* under FreeBSD re_comp and re_exec are declared (differently) in unistd.h */
#ifdef __FreeBSD__
#define re_comp wx_re_comp
#define re_exec wx_re_exec
#endif
/* --- end --- */