summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2003-07-03 19:46:49 +0000
committerAlexandra Ellwood <lxs@mit.edu>2003-07-03 19:46:49 +0000
commit4e16a7cedbd9d5a545462701552e8c227d4252a2 (patch)
tree3ebecc9927e27155a3a02165d76472d5f5f683b8 /src
parent11f2dea790f0d860eb7b49b733fa76f195ae966a (diff)
downloadkrb5-4e16a7cedbd9d5a545462701552e8c227d4252a2.tar.gz
krb5-4e16a7cedbd9d5a545462701552e8c227d4252a2.tar.xz
krb5-4e16a7cedbd9d5a545462701552e8c227d4252a2.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/util/profile/ChangeLog5
-rw-r--r--src/util/profile/profile.hin29
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 <lxs@mit.edu>
+
+ * profile.hin: Remove leading spaces in #define and #include
+ in public headers to support K&R C compilers
+
2003-04-28 Ezra Peisach <epeisach@bu.edu>
* 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 <TargetConditionals.h>
- #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 <TargetConditionals.h>
+# 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