]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_slk.c
ncurses 5.7 - patch 20090530
[ncurses.git] / ncurses / base / lib_slk.c
index 58e887b1df4d358c2ae77ab308ca786e30a87dfc..2f1a92118382e9811f094d2e3f04cdef8b294f05 100644 (file)
 #include <ctype.h>
 #include <term.h>              /* num_labels, label_*, plab_norm */
 
-MODULE_ID("$Id: lib_slk.c,v 1.36 2009/02/15 00:33:48 tom Exp $")
+#ifndef CUR
+#define CUR SP_TERMTYPE 
+#endif
+
+MODULE_ID("$Id: lib_slk.c,v 1.38 2009/05/10 00:48:29 tom Exp $")
 
 /*
  * Free any memory related to soft labels, return an error.
@@ -68,6 +72,9 @@ slk_failed(void)
 NCURSES_EXPORT(int)
 _nc_slk_initialize(WINDOW *stwin, int cols)
 {
+#if NCURSES_SP_FUNCS
+    SCREEN *sp = CURRENT_SCREEN;
+#endif
     int i, x;
     int res = OK;
     unsigned max_length;