summaryrefslogtreecommitdiff
path: root/trex.h
diff options
context:
space:
mode:
Diffstat (limited to 'trex.h')
-rw-r--r--trex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/trex.h b/trex.h
index 9348bcb..4e85f6e 100644
--- a/trex.h
+++ b/trex.h
@@ -27,6 +27,10 @@
****************************************************************/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef _UNICODE
#define TRexChar unsigned short
#define MAX_CHAR 0xFFFF
@@ -66,4 +70,8 @@ TREX_API TRexBool trex_searchrange(TRex* exp,const TRexChar* text_begin,const TR
TREX_API int trex_getsubexpcount(TRex* exp);
TREX_API TRexBool trex_getsubexp(TRex* exp, int n, TRexMatch *subexp);
+#ifdef __cplusplus
+}
+#endif
+
#endif