Overview
| Artifact ID: | faed6763d457abe48178dabf39365b99f03741d4 |
|---|---|
| Ticket: | 2163447fffffffffffffffffffffffffffffffff
tclOOInt.h Class type conflicts with Objective C |
| User & Date: | das on 2008-10-13 11:55:08 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
Class is a reserved type in Objective C, its use by tclOOInt.h makes it impossible to include that file in any objc code or to compile the core with an objc compiler, due to errors like: tcl/generic/tclOOInt.h:255: error: conflicting types for 'Class' <built-in>:0: error: previous declaration of 'Class' was here the patch below works around the issue, it would probably be even better to globally rename the unadorned TclOO types Class and Object to TclClass and TclObject diff --git c/tcl/generic/tclOOInt.h w/tcl/generic/tclOOInt.h index 56edcc4..8b4b107 100644 --- c/tcl/generic/tclOOInt.h +++ w/tcl/generic/tclOOInt.h @@ -15,6 +15,8 @@ #include <tclInt.h> #include "tclOO.h" +#define Class TclClass + /* * Forward declarations. */
- foundin changed to: "obsolete: 8.6a2"
- is_private changed to: "0"
- priority changed to: "8"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "das"
- subsystem changed to: "35. TclOO Package"
- title changed to: "tclOOInt.h Class type conflicts with Objective C"
- type changed to: "Bug"