From 5e8bc3cf754c28ef27197343cec81f23e69a1ff5 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Sat, 15 Jun 2002 03:13:57 +0000 Subject: [PATCH] * k5-int.h: Added krb5_kt_dfl_ops for KRB5_KEYTAB_ACCESSOR_FUNCTIONS * k5-int.h: Removed conditionals now defined in prefix files and updated header paths * k5-int.h: Rearranged the #ifdef macintosh section to work on Mac OS 9 and X * k5-int.h: Updated Mac OS #defines and #includes for new header layout and Mac OS X frameworks [pullups from 1-2-2-branch] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14512 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 19 +++++++++++++++++++ src/include/k5-int.h | 28 +++++++++++++--------------- 2 files changed, 32 insertions(+), 15 deletions(-) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 750d8afcc..8a8262223 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,22 @@ +2002-06-14 Alexandra Ellwood + + * k5-int.h: Added krb5_kt_dfl_ops for KRB5_KEYTAB_ACCESSOR_FUNCTIONS + + * k5-int.h: Removed conditionals now defined in prefix files + and updated header paths + + [pullups from 1-2-2-branch] + +2002-06-14 Miro Jurisic + + * k5-int.h: Rearranged the #ifdef macintosh section to + work on Mac OS 9 and X + + * k5-int.h: Updated Mac OS #defines + and #includes for new header layout and Mac OS X frameworks + + [pullups from 1-2-2-branch] + 2002-06-14 Tom Yu * krb5.hin: Fix BEGIN_DECLS conditional. diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 7ec32d151..8227c5285 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -89,14 +89,9 @@ * Machine-type definitions: PC Clone 386 running Microloss Windows */ -#if defined(_WIN32) || defined(macintosh) +#if defined(_MSDOS) || defined(_WIN32) #include "win-mac.h" -#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__) -#pragma import on -#endif -#endif -#if defined(_WIN32) /* Kerberos Windows initialization file */ #define KERBEROS_INI "kerberos.ini" #define INI_FILES "Files" @@ -106,10 +101,12 @@ #define ANSI_STDIO #endif - -#ifndef macintosh -#if defined(__MWERKS__) || defined(applec) || defined(THINK_C) +/* Note, this may shoot us in the foot if we switch to CW compilers for Mach-o builds */ +#if !defined(macintosh) && (defined(__MWERKS__) || defined(applec) || defined(THINK_C)) #define macintosh +#endif + +#ifdef macintosh #define SIZEOF_INT 4 #define SIZEOF_SHORT 2 #define HAVE_SRAND @@ -117,16 +114,12 @@ #define HAVE_LABS /*#define ENOMEM -1*/ #define ANSI_STDIO -#ifndef _SIZET -typedef unsigned int size_t; -#define _SIZET -#endif +#include #include #include -#endif +#include #endif - #ifndef KRB5_AUTOCONF__ #define KRB5_AUTOCONF__ #include "autoconf.h" @@ -980,7 +973,12 @@ void KRB5_CALLCONV krb5_free_pa_enc_ts (krb5_context, krb5_pa_enc_ts *); /* #include "krb5/wordsize.h" -- comes in through base-defs.h. */ +#if TARGET_OS_MAC +#include +#include /* Not included by Kerberos/profile.h */ +#else #include "profile.h" +#endif struct _krb5_context { krb5_magic magic; -- 2.26.2