Fix a few stylistic warnings from Apple's C compilers.
[u/mdw/putty] / mkfiles.pl
index 384a88e..8b955e3 100755 (executable)
@@ -604,7 +604,8 @@ print <<END;
 ROptions     = `Echo "{VER}" | StreamEdit -e "1,\$ replace /=(\xc5)\xa81\xb0/ 'STR=\xb6\xb6\xb6\xb6\xb6"' \xa81 '\xb6\xb6\xb6\xb6\xb6"'"`
 
 # -w 35 disables "unused parameter" warnings
-COptions     = -i : -i :: -w 35 -w err -proto strict
+COptions     = -i : -i :: -i ::charset -w 35 -w err -proto strict -ansi on \xb6
+              -notOnce
 COptions_68K = {COptions} -model far -opt space
 # Enabling "-opt space" for CFM-68K gives me undefined references to
 # _$LDIVT and _$LMODT.
@@ -636,6 +637,10 @@ Libs_CFM68K =      {Libs_CFM} \xb6
                "{CFM68KLibraries}NuMacRuntime.o"
 
 Libs_PPC =     {Libs_CFM} \xb6
+               "{SharedLibraries}ControlsLib" \xb6
+                       -weaklib ControlsLib \xb6
+               "{SharedLibraries}WindowsLib" \xb6
+                       -weaklib WindowsLib \xb6
                "{PPCLibraries}StdCRuntime.o" \xb6
                "{PPCLibraries}PPCCRuntime.o" \xb6
                "{PPCLibraries}CarbonAccessors.o"