Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-16
23:28 • Ticket [218543ffff] egcs-1.1 support in tcl.h status still Closed with 3 oth... artifact: 7137b5a7ec user: dgp
2000-10-26
08:24 • Closed ticket [218543ffff]. artifact: e8b67e6fd6 user: welch
01:01 • New ticket [218543ffff]. artifact: 5150e18b26 user: nobody

egcs-1.1 support in tcl.h

Closed / Fixed218543ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:57
OriginalBugID: 972 RFE
Version: 8.0.4
SubmitDate: '1998-12-15'
LastModified: '1999-01-04'
Severity: LOW
Status: Released
Submitter: welch
ChangedBy: rjohnson
OS: Windows NT
OSVersion: 4.0 SP3
Machine: X86
FixedDate: '1999-01-04'
FixedInVersion: 8.0.5
ClosedDate: '2000-10-25'


Name:
Jan Nijtmans

DesiredBehavior:
The egcs-1.1 compiler has support for the __declspec option from
MSVC++. A one-line change to tcl.h is enough to make the DLLEXPORT
and DLLIMPORT macros work with egcs-1.1 in the same way as it
works for MSVC++.



Patch:
*** tcl.h.origFri Oct 23 23:21:39 1998
--- tcl.hWed Dec 09 11:40:16 1998
***************
*** 176,182 ****
  #  define DLLIMPORT
  #  define DLLEXPORT
  # else
! #  ifdef _MSC_VER
  #   define DLLIMPORT __declspec(dllimport)
  #   define DLLEXPORT __declspec(dllexport)
  #  else
--- 176,182 ----
  #  define DLLIMPORT
  #  define DLLEXPORT
  # else
! #  if defined(_MSC_VER) || (defined(__GNUC__) && defined(__declspec))
  #   define DLLIMPORT __declspec(dllimport)
  #   define DLLEXPORT __declspec(dllexport)
  #  else




PatchFiles:
tcl.h
welch Closed ticket [218543ffff]. [History diff]2000-10-26 08:24:13
dgp Ticket [218543ffff]: 3 changes [History diff]2001-04-16 23:28:54
Log in (anonymous is fine) to add a comment.