From 4e16a7cedbd9d5a545462701552e8c227d4252a2 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Thu, 3 Jul 2003 19:46:49 +0000 Subject: [PATCH] Remove leading spaces in #define and #include in public headers to support K&R C compilers ticket: 1648 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15667 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/profile/ChangeLog | 5 +++++ src/util/profile/profile.hin | 29 +++++++++++++---------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index cbaceb972..304c0315e 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,8 @@ +2003-07-03 Alexandra Ellwood + + * profile.hin: Remove leading spaces in #define and #include + in public headers to support K&R C compilers + 2003-04-28 Ezra Peisach * prof_file.c (r_access): Static function. Only include if diff --git a/src/util/profile/profile.hin b/src/util/profile/profile.hin index 156375c81..581ee10bf 100644 --- a/src/util/profile/profile.hin +++ b/src/util/profile/profile.hin @@ -10,17 +10,10 @@ #endif #if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__)) - #include - #if TARGET_RT_MAC_CFM - #error "Use KfM 4.0 SDK headers for CFM compilation." - #endif -#endif -#if TARGET_OS_MAC - #if defined(__MWERKS__) - #pragma import on - #pragma enumsalwaysint on - #endif - #pragma options align=mac68k +# include +# if TARGET_RT_MAC_CFM +# error "Use KfM 4.0 SDK headers for CFM compilation." +# endif #endif #ifndef KRB5_CALLCONV @@ -41,6 +34,12 @@ typedef struct _profile_t *profile_t; extern "C" { #endif /* __cplusplus */ +#if TARGET_OS_MAC +# if defined(__MWERKS__) +# pragma import on +# endif +#endif + typedef char* profile_filespec_t; /* path as C string */ typedef char* profile_filespec_list_t; /* list of : separated paths, C string */ typedef const char * const_profile_filespec_t; /* path as C string */ @@ -115,11 +114,9 @@ long KRB5_CALLCONV profile_add_relation const char *new_value); #if TARGET_OS_MAC - #if defined(__MWERKS__) - #pragma enumsalwaysint reset - #pragma import reset - #endif - #pragma options align=reset +# if defined(__MWERKS__) +# pragma import reset +# endif #endif #ifdef __cplusplus -- 2.26.2