*/
#ifndef panic /* In a stubs-aware setting, this could confuse the #define */
-extern void panic _ANSI_ARGS_(TCL_VARARGS(char *, string));
+EXTERN void panic _ANSI_ARGS_(TCL_VARARGS(char *, string));
#endif
#ifndef strcasecmp
-extern int strcasecmp _ANSI_ARGS_((CONST char *s1,
+EXTERN int strcasecmp _ANSI_ARGS_((CONST char *s1,
CONST char *s2));
#endif
#ifndef strncasecmp
-extern int strncasecmp _ANSI_ARGS_((CONST char *s1,
+EXTERN int strncasecmp _ANSI_ARGS_((CONST char *s1,
CONST char *s2, size_t n));
#endif
/*
/*
* This macro stores a representation of the window handle in a string.
+ * This should perhaps use the real size of an XID.
*/
#define TkpPrintWindowId(buf,w) \
sprintf((buf), "0x%x", (unsigned int) (w))
-
+
/*
* TkpScanWindowId is just an alias for Tcl_GetInt on Unix.
*/
#define TkpScanWindowId(i,s,wp) \
- Tcl_GetInt((i),(s),(wp))
+ Tcl_GetInt((i),(s),(int *)(wp))
/*
* Magic pixel values for dynamic (or active) colors.
#define MENU_TEXT_PIXEL 51
#define APPEARANCE_PIXEL 52
-#endif /* _TKMACPORT */
+/*
+ * The following declaration is used to get access to a private Tcl interface
+ * that is needed for portability reasons.
+ */
+#ifndef _TCLINT
+#include <tclInt.h>
+#endif
+#endif /* _TKMACPORT */