summaryrefslogtreecommitdiffstats
path: root/generic/tclStubInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-04 20:17:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-04 20:17:52 (GMT)
commitcb6044b9fc72e9d050461b42b760f19b44b0680d (patch)
tree725b2ac6036503f137a6158c49e0b7321dab9f13 /generic/tclStubInit.c
parent308ff20a3b5a4979f9997480ecd308756b08525a (diff)
parent35931d9a7cb0477591913a5a95bc958f75fbded8 (diff)
downloadtcl-cb6044b9fc72e9d050461b42b760f19b44b0680d.zip
tcl-cb6044b9fc72e9d050461b42b760f19b44b0680d.tar.gz
tcl-cb6044b9fc72e9d050461b42b760f19b44b0680d.tar.bz2
some formatting (*.decls)
move up #undef, for macro which is conflicting with later stuff. remove some unused cygwin-related code some minor gcc warnings
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r--generic/tclStubInit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index e6f95b4..65b7db0 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -31,6 +31,7 @@
#undef Tcl_ValidateAllMemory
#undef Tcl_FindHashEntry
#undef Tcl_CreateHashEntry
+#undef TclSockMinimumBuffers
/*
* Keep a record of the original Notifier procedures, created in the
@@ -59,12 +60,11 @@ Tcl_NotifierProcs tclOriginalNotifier = {
#ifdef _WIN64
# define TclSockMinimumBuffersOld 0
#else
-#undef TclSockMinimumBuffers
int TclSockMinimumBuffersOld(sock, size)
int sock;
int size;
{
- return TclSockMinimumBuffers((void *) (size_t) sock, size);
+ return TclSockMinimumBuffers(INT2PTR(sock), size);
}
#endif