svn commit: r225615 - user/gabor/tre-integration/include
Gabor Kovesdan
gabor at FreeBSD.org
Fri Sep 16 12:12:26 UTC 2011
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;
More information about the svn-src-user
mailing list