diff options
author | johnvg | 2004-04-19 15:58:08 +0000 |
---|---|---|
committer | johnvg | 2004-04-19 15:58:08 +0000 |
commit | 3da21f72800967c55fa35628ea342b0938f06099 (patch) | |
tree | 605b55537d74c2a17fd0620c410b0b79d843fd68 | |
parent | port to gcc on Mac OS X (diff) |
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
-rw-r--r-- | backendC/CleanCompilerSources/apple_main.c | 11 | ||||
-rw-r--r-- | backendC/CleanCompilerSources/scanner_2.c | 2 |
2 files changed, 12 insertions, 1 deletions
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 |