summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authordas <das>2002-09-12 17:34:15 (GMT)
committerdas <das>2002-09-12 17:34:15 (GMT)
commit3511aff356300b3c67bb9cdea914d9d0680818f9 (patch)
tree5accee31b778ee9409cf319d46f1fab25dc6353b /generic/tk.h
parentd4c4c3a8f8edcc54b1e28e0ef3eaade3e5f2adce (diff)
downloadtk-3511aff356300b3c67bb9cdea914d9d0680818f9.zip
tk-3511aff356300b3c67bb9cdea914d9d0680818f9.tar.gz
tk-3511aff356300b3c67bb9cdea914d9d0680818f9.tar.bz2
* generic/tk.h:
* mac/tkMacApplication.r: * mac/tkMacLibrary.r: * mac/tkMacResource.r: * macosx/tkAboutDlg.r: * macosx/tkMacOSXApplication.r: * macosx/tkMacOSXLibrary.r: * macosx/tkMacOSXResource.r: unified use of the two equivalent resource compiler header inclusion defines RC_INVOKED and RESOURCE_INCLUDED, now use RC_INVOKED throughout. * macosx/tkMacOSXAppInit.c: improved detection of Wish startup by the finder (by checking if stdin is /dev/null), in which case we want to bring up the Tk console window. * macosx/tkMacOSXHLEvents.c: added 'rapp' apple event handler.
Diffstat (limited to 'generic/tk.h')
-rw-r--r--generic/tk.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/generic/tk.h b/generic/tk.h
index 47eb8df..9557eae 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tk.h,v 1.69 2002/09/02 20:16:59 hobbs Exp $
+ * RCS: @(#) $Id: tk.h,v 1.70 2002/09/12 17:34:15 das Exp $
*/
#ifndef _TK
@@ -53,13 +53,17 @@ extern "C" {
#define TK_VERSION "8.4"
#define TK_PATCH_LEVEL "8.4.0"
-/*
- * A special define for MacOS & MacOS X, allows us to use the header
- * in the resource compiler without having it choke on the more complex
- * C preprocessor constructs.
+/*
+ * A special definition used to allow this header file to be included
+ * from windows or mac resource files so that they can obtain version
+ * information. RC_INVOKED is defined by default by the windows RC tool
+ * and manually set for macintosh.
+ *
+ * Resource compilers don't like all the C stuff, like typedefs and
+ * procedure declarations, that occur below, so block them out.
*/
-#ifndef RESOURCE_INCLUDED
+#ifndef RC_INVOKED
/*
* The following definitions set up the proper options for Macintosh
@@ -79,13 +83,6 @@ extern "C" {
# endif
#endif
-/*
- * A special definition used to allow this header file to be included
- * in resource files.
- */
-
-#ifndef RC_INVOKED
-
#ifndef _XLIB_H
# if defined (MAC_TCL)
# include <Xlib.h>
@@ -1601,12 +1598,10 @@ typedef int (Tk_SelectionProc) _ANSI_ARGS_((ClientData clientData,
*/
-#endif /* RC_INVOKED */
-
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLIMPORT
-#endif /* RESOURCE_INCLUDED */
+#endif /* RC_INVOKED */
/*
* end block for C++