]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
setup: do not require __MRC__ defined for Mac OS 9 builds
authorRyan Schmidt <git@ryandesign.com>
Sat, 27 Aug 2022 00:31:31 +0000 (19:31 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Dec 2022 08:35:47 +0000 (09:35 +0100)
Partially reverts "somewhat protect Mac OS X users from using Mac OS 9
config file", commit 62519bfe059251af2914199f284c736553ff0489.

Do things that are specific to classic Mac OS (i.e. include config-mac.h
in curl_setup.h and rename "main" to "curl_main" in tool_setup.h) when
only "macintosh" is defined. Remove the additional condition that
"__MRC__" should be defined since that would only be true with the MPW
MrC compiler which prevents the use of other reasonable compilers like
the MPW SC compiler and especially the Metrowerks CodeWarrior compilers.
"macintosh" is only defined by classic Mac OS compilers so this change
should not affect users of Mac OS X / OS X / macOS / any other OS.

Closes #10037

lib/curl_setup.h
src/tool_setup.h

index 6612eb4b6b3e196c9563625794166b35e5e6d8e0..2b85a60e4cedcad708a2b02997058a7035e8995c 100644 (file)
@@ -92,7 +92,7 @@
 #  endif
 #endif
 
-#if defined(macintosh) && defined(__MRC__)
+#ifdef macintosh
 #  include "config-mac.h"
 #endif
 
index 16fa00e7d1d5376ef8fe15f5f4ff6410e36ee26f..2543190672637cbf47be43647b61bdae2907213e 100644 (file)
@@ -47,7 +47,7 @@
  * Platform specific stuff.
  */
 
-#if defined(macintosh) && defined(__MRC__)
+#ifdef macintosh
 #  define main(x,y) curl_main(x,y)
 #endif