aboutsummaryrefslogtreecommitdiff
path: root/src/mac/GSS.CFM.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac/GSS.CFM.c')
-rw-r--r--src/mac/GSS.CFM.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/mac/GSS.CFM.c b/src/mac/GSS.CFM.c
index 985ccd2..c35134b 100644
--- a/src/mac/GSS.CFM.c
+++ b/src/mac/GSS.CFM.c
@@ -16,32 +16,43 @@
* without express or implied warranty.
*/
-
-#include <CodeFragments.h>
-
#include "gss_libinit.h"
+#if TARGET_RT_MAC_CFM
+#include <CodeFragments.h>
+
OSErr __initializeGSS(CFragInitBlockPtr ibp);
void __terminateGSS(void);
OSErr __initializeGSS(CFragInitBlockPtr ibp)
{
OSErr err = noErr;
-
+
/* Do normal init of the shared library */
err = __initialize();
-
+#else
+#define noErr 0
+void __initializeGSS(void);
+void __initializeGSS(void)
+{
+ int err = noErr;
+#endif
+
/* Initialize the error tables */
if (err == noErr) {
err = gssint_initialize_library ();
}
-
+
+#if TARGET_RT_MAC_CFM
return err;
+#endif
}
+#if TARGET_RT_MAC_CFM
void __terminateGSS(void)
{
gssint_cleanup_library ();
__terminate();
}
+#endif