Date: Fri, 16 Sep 2011 12:12:26 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r225615 - user/gabor/tre-integration/include Message-ID: <201109161212.p8GCCQ8N021546@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gabor Date: Fri Sep 16 12:12:26 2011 New Revision: 225615 URL: http://svn.freebsd.org/changeset/base/225615 Log: - Include missing header when needed Modified: user/gabor/tre-integration/include/regex.h Modified: user/gabor/tre-integration/include/regex.h ============================================================================== --- user/gabor/tre-integration/include/regex.h Fri Sep 16 11:14:10 2011 (r225614) +++ user/gabor/tre-integration/include/regex.h Fri Sep 16 12:12:26 2011 (r225615) @@ -11,11 +11,15 @@ #ifndef REGEX_H #define REGEX_H 1 -#include <sys/types.h> - #define TRE_WCHAR 1 #define TRE_APPROX 1 +#include <sys/types.h> + +#ifdef TRE_WCHAR +#include <wchar.h> +#endif + #ifdef __cplusplus extern "C" { #endif @@ -69,7 +73,7 @@ typedef struct { void *shortcut; /* For internal use only. */ void *heur; /* For internal use only. */ const char *re_endp; -#ifdef TRE_WCHAR +#if TRE_WCHAR const wchar_t *re_wendp; #endif } regex_t;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109161212.p8GCCQ8N021546>