From 3da21f72800967c55fa35628ea342b0938f06099 Mon Sep 17 00:00:00 2001 From: johnvg Date: Mon, 19 Apr 2004 15:58:08 +0000 Subject: port to gcc on Mac OS X git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1489 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d --- backendC/CleanCompilerSources/apple_main.c | 11 +++++++++++ backendC/CleanCompilerSources/scanner_2.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/backendC/CleanCompilerSources/apple_main.c b/backendC/CleanCompilerSources/apple_main.c index 8ce9dac..ef27204 100644 --- a/backendC/CleanCompilerSources/apple_main.c +++ b/backendC/CleanCompilerSources/apple_main.c @@ -102,6 +102,17 @@ extern int CallCompiler (int argc,char **argv); char return_error_string[200]; +#ifdef CG_PPC_XO +extern int generate_code_xo (int argc,char **argv,char *return_error_string_p,int *compiler_id_p); +extern int generate_code_o (int argc,char **argv,char *return_error_string_p,int *compiler_id_p); +#endif + +#ifdef CLEAN2 +int compiler_id=-1; +#else +extern int compiler_id; +#endif + int do_command (char *command) { char *p,*(argv[257]); diff --git a/backendC/CleanCompilerSources/scanner_2.c b/backendC/CleanCompilerSources/scanner_2.c index e756907..f7359c0 100644 --- a/backendC/CleanCompilerSources/scanner_2.c +++ b/backendC/CleanCompilerSources/scanner_2.c @@ -26,7 +26,7 @@ # include "scanner.h" # include "sizes.h" -# if (defined (__MWERKS__) || defined (__MRC__)) && !defined _WINDOWS_ /* && !defined (MAKE_MPW_TOOL) */ +# if (defined (__MWERKS__) || defined (__MRC__) || (defined (GNU_C) && defined (_MAC_)) && !defined _WINDOWS_ /* && !defined (MAKE_MPW_TOOL) */ # define CACHE_DCL_FILES # define CACHE_INLINE_FILES # else -- cgit v1.2.3