summaryrefslogtreecommitdiff
path: root/trex.h
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2014-01-07 15:40:29 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2014-01-07 15:40:29 +0200
commit6c92add4b94e1b5ab35f197fc51e427b1c5d9d77 (patch)
treed43a421dede08b4a2cf845715541c7a13eaaa834 /trex.h
parent83746583b5dbcf4c470cad3ac177a0c24d0f23a8 (diff)
downloadtiny-rex-6c92add4b94e1b5ab35f197fc51e427b1c5d9d77.tar.gz
tiny-rex-6c92add4b94e1b5ab35f197fc51e427b1c5d9d77.zip
c++ changesHEADmaster
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