diff options
Diffstat (limited to 'src/mac/ProfileLib.CFM.c')
-rw-r--r-- | src/mac/ProfileLib.CFM.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/mac/ProfileLib.CFM.c b/src/mac/ProfileLib.CFM.c index 9b5ea87..12d58e4 100644 --- a/src/mac/ProfileLib.CFM.c +++ b/src/mac/ProfileLib.CFM.c @@ -16,11 +16,11 @@ * without express or implied warranty. */ - -#include <CodeFragments.h> - #include "profile.h" +#include "prof_err.h" +#if TARGET_RT_MAC_CFM +#include <CodeFragments.h> OSErr InitializeProfileLib ( CFragInitBlockPtr ibp); @@ -33,17 +33,28 @@ OSErr InitializeProfileLib( /* Do normal init of the shared library */ err = __initialize(ibp); +#else +#define noErr 0 +void __InitializeProfileLib (void); +void __InitializeProfileLib (void) +{ + int err = noErr; +#endif /* Initialize the error tables */ if (err == noErr) { add_error_table(&et_prof_error_table); } +#if TARGET_RT_MAC_CFM return err; +#endif } +#if TARGET_RT_MAC_CFM void TerminateProfileLib(void) { remove_error_table(&et_prof_error_table); __terminate(); } +#endif |