summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/support/camltk.h
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/labltk/support/camltk.h')
-rw-r--r--otherlibs/labltk/support/camltk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/otherlibs/labltk/support/camltk.h b/otherlibs/labltk/support/camltk.h
index 56cb29a68..5be206faa 100644
--- a/otherlibs/labltk/support/camltk.h
+++ b/otherlibs/labltk/support/camltk.h
@@ -27,6 +27,11 @@
#define CONST84
#endif
+/* if Tcl_GetStringResult is not defined, we use interp->result */
+#ifndef Tcl_GetStringResult
+# define Tcl_GetStringResult(interp) (interp->result)
+#endif
+
/* cltkMisc.c */
/* copy a Caml string to the C heap. Must be deallocated with stat_free */
extern char *string_to_c(value s);