From 0bec4f557a96e1a40437cf5af20cc78a5eec8a63 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 11 Jan 2023 22:29:53 +0000 Subject: getting closer --- compiler_and_linker/unsorted/CCompiler.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'compiler_and_linker/unsorted/CCompiler.c') diff --git a/compiler_and_linker/unsorted/CCompiler.c b/compiler_and_linker/unsorted/CCompiler.c index 6159517..1bac511 100644 --- a/compiler_and_linker/unsorted/CCompiler.c +++ b/compiler_and_linker/unsorted/CCompiler.c @@ -3,6 +3,8 @@ #include "compiler/CPrep.h" #include "compiler/CompilerTools.h" #include "compiler/CodeGen.h" +#include "compiler/CodeGenOptPPC.h" +#include "compiler/IrOptimizer.h" #include "compiler/types.h" #include "pref_structs.h" @@ -72,7 +74,7 @@ static int setup_param_block(CWPluginContext context) { return CWGetTargetName(context, target_name, sizeof(target_name)) == cwNoErr; } -static short store_compile_results() { +static short store_compile_results(void) { CWResult result; if (cparams.objectDataHandle) @@ -181,7 +183,7 @@ static void initialize_compiler_options(CParams *params) { copts.text = CWFOURCHAR('T','E','X','T'); } -static void GetLicense() { +static void GetLicense(void) { if (!license_cookie) { crippled = 1; CWCheckoutLicense(cparams.context, "MacOS_Plugins_MacOS_Unlimited", "7", 2, NULL, &license_cookie); @@ -195,7 +197,7 @@ static void GetLicense() { } } -static void ReleaseLicense() { +static void ReleaseLicense(void) { if (license_cookie && using_license_manager) CWCheckinLicense(cparams.context, license_cookie); using_license_manager = 0; -- cgit v1.2.3