summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Schmidt <git@ryandesign.com>2022-08-26 19:31:31 -0500
committerDaniel Stenberg <daniel@haxx.se>2022-12-06 09:35:47 +0100
commit82b34813097d86dd429f33ffe1ab047d4b06897e (patch)
tree2eb0ff1be919d5c17e0daf69ac297427f0d87c8b /src
parentd502270eb2212167fae347dbeff08cd7ef5cdea7 (diff)
downloadcurl-82b34813097d86dd429f33ffe1ab047d4b06897e.tar.gz
setup: do not require __MRC__ defined for Mac OS 9 builds
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
Diffstat (limited to 'src')
-rw-r--r--src/tool_setup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_setup.h b/src/tool_setup.h
index 16fa00e7d..254319067 100644
--- a/src/tool_setup.h
+++ b/src/tool_setup.h
@@ -47,7 +47,7 @@
* Platform specific stuff.
*/
-#if defined(macintosh) && defined(__MRC__)
+#ifdef macintosh
# define main(x,y) curl_main(x,y)
#endif