1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-26 15:22:09 -05:00

We now only link weakly with AppearanceLib, which should let us run on PowerPCs

without the Appearance Manager.  Not that I've tested this, of course.

[originally from svn r140]
This commit is contained in:
Ben Harris 1999-03-29 23:55:06 +00:00
parent ff6025bc79
commit 3b65b371d0
3 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $Id: Makefile.mpw,v 1.1.2.6 1999/03/28 17:34:36 ben Exp $ # $Id: Makefile.mpw,v 1.1.2.7 1999/03/29 23:55:06 ben Exp $
# This is the Makefile for building PuTTY for the Mac OS. # This is the Makefile for building PuTTY for the Mac OS.
# Users of non-Mac systems will see some pretty strange characters around. # Users of non-Mac systems will see some pretty strange characters around.
@ -58,7 +58,7 @@ Libs
Libs¥PPC = "{SharedLibraries}InterfaceLib" Libs¥PPC = "{SharedLibraries}InterfaceLib"
"{SharedLibraries}StdCLib" "{SharedLibraries}StdCLib"
"{SharedLibraries}MathLib" "{SharedLibraries}MathLib"
"{SharedLibraries}AppearanceLib" "{SharedLibraries}AppearanceLib" -weaklib AppearanceLib
"{PPCLibraries}StdCRuntime.o" "{PPCLibraries}StdCRuntime.o"
"{PPCLibraries}PPCCRuntime.o" "{PPCLibraries}PPCCRuntime.o"

View File

@ -1,4 +1,4 @@
$Id: README.mac,v 1.1.2.1 1999/03/29 19:51:40 ben Exp $ $Id: README.mac,v 1.1.2.2 1999/03/29 23:55:06 ben Exp $
Information about PuTTY for the Mac OS Information about PuTTY for the Mac OS
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@ -6,7 +6,7 @@ Information about PuTTY for the Mac OS
Known bugs: Known bugs:
* PowerPC and fat versions fail to start on systems without AppearanceLib (ie * PowerPC and fat versions fail to start on systems without AppearanceLib (ie
most System 7 ones). The 68k version works fine. most System 7 ones). The 68k version works fine. [MAYBE FIXED]
* If the screen scrolls more than once between calls to WaitNextEvent, Bad * If the screen scrolls more than once between calls to WaitNextEvent, Bad
Things can happen owing to a bug in do_scroll. This can be fixed when I Things can happen owing to a bug in do_scroll. This can be fixed when I
have an easy way to test it. have an easy way to test it.

5
mac.c
View File

@ -1,4 +1,4 @@
/* $Id: mac.c,v 1.1.2.20 1999/03/29 19:50:22 ben Exp $ */ /* $Id: mac.c,v 1.1.2.21 1999/03/29 23:55:06 ben Exp $ */
/* /*
* Copyright (c) 1999 Ben Harris * Copyright (c) 1999 Ben Harris
* All rights reserved. * All rights reserved.
@ -117,6 +117,9 @@ static void mac_startup(void) {
mac_gestalts.apprvers = 0x0100; mac_gestalts.apprvers = 0x0100;
else else
mac_gestalts.apprvers = 0; mac_gestalts.apprvers = 0;
/* Paranoia: Did we manage to pull in AppearanceLib? */
if (&RegisterAppearanceClient == NULL)
mac_gestalts.apprvers = 0;
/* Mac OS 8.5 Control Manager (proportional scrollbars)? */ /* Mac OS 8.5 Control Manager (proportional scrollbars)? */
if (Gestalt(gestaltControlMgrAttr, &mac_gestalts.cntlattr) != noErr) if (Gestalt(gestaltControlMgrAttr, &mac_gestalts.cntlattr) != noErr)
mac_gestalts.cntlattr = 0; mac_gestalts.cntlattr = 0;