summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2011-04-06 13:11:06 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2011-04-06 13:11:06 (GMT)
commitfd1bf07c123f7b5987a52666770d48788ade0595 (patch)
tree7fad50d479b23fb7a0ac569a4e77a0232b36f058 /unix
parente1e1bdfde3933357dc939297e9d8a1f696a4429a (diff)
downloadtk-fd1bf07c123f7b5987a52666770d48788ade0595.zip
tk-fd1bf07c123f7b5987a52666770d48788ade0595.tar.gz
tk-fd1bf07c123f7b5987a52666770d48788ade0595.tar.bz2
Make symbols "main" and "Tcl_AppInit" MODULE_SCOPE: there is absolutely no reason for exporting them.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkAppInit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tkAppInit.c b/unix/tkAppInit.c
index e18ddc2..c2cafef 100644
--- a/unix/tkAppInit.c
+++ b/unix/tkAppInit.c
@@ -14,6 +14,8 @@
* RCS: @(#) $Id: tkAppInit.c,v 1.12 2010/09/23 21:45:14 nijtmans Exp $
*/
+#undef BUILD_tk
+#undef STATIC_BUILD
#include "tk.h"
#ifdef TK_TEST
@@ -29,7 +31,8 @@ extern Tcl_PackageInitProc Tktest_Init;
#ifndef TK_LOCAL_APPINIT
#define TK_LOCAL_APPINIT Tcl_AppInit
#endif
-extern int TK_LOCAL_APPINIT(Tcl_Interp *interp);
+MODULE_SCOPE int TK_LOCAL_APPINIT(Tcl_Interp *);
+MODULE_SCOPE int main(int, char **);
/*
* The following #if block allows you to change how Tcl finds the startup