Conditionalize #pragma mark with TARGET_OS_MAC; remove any Windows #pragma disable
authorKevin Koch <kpkoch@mit.edu>
Wed, 21 Nov 2007 14:05:43 +0000 (14:05 +0000)
committerKevin Koch <kpkoch@mit.edu>
Wed, 21 Nov 2007 14:05:43 +0000 (14:05 +0000)
TargetVersion: 1.7
Component: krb5-libs
Ticket: 5594

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20168 dc483132-0cff-0310-8789-dd5450dbe970

src/ccapi/common/cci_cred_union.c
src/ccapi/common/cci_stream.c

index f0dbc1f0081a916a07cfa1359fb836c16575b20c..55da1e264b2ddfcd5e2bc5a8540d80c2a43db467 100644 (file)
 
 #include "cci_common.h"
 
-#ifdef WIN32
-#pragma warning ( disable : 4068)
+#ifdef TARGET_OS_MAC
+#pragma mark -
 #endif
 
-#pragma mark - 
-
 /* ------------------------------------------------------------------------ */
 
 static cc_uint32 cci_credentials_v4_release (cc_credentials_v4_t *io_v4creds)
@@ -199,7 +197,9 @@ static cc_uint32 cci_credentials_v4_write (cc_credentials_v4_t *in_v4creds,
     return cci_check_error (err);
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
@@ -302,7 +302,9 @@ static cc_uint32 cci_cc_data_write (cc_data      *in_ccdata,
     return cci_check_error (err);
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
@@ -399,7 +401,9 @@ static cc_uint32 cci_cc_data_array_write (cc_data      **in_ccdata_array,
     return cci_check_error (err);
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
@@ -584,7 +588,9 @@ static cc_uint32 cci_credentials_v5_write (cc_credentials_v5_t *in_v5creds,
     return cci_check_error (err);
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
index f8438e54991d4b2002322d1db069c57d8e177a76..2f06789479b184e5a6c59b346b41bc8613cbbab7 100644 (file)
 #include "cci_common.h"
 #include "k5-platform.h"       /* for byte swapping */
 
-#ifdef WIN32
-#pragma warning ( disable : 4068)
-#endif
-
 #if !defined(htonll)
 #define htonll(x) k5_htonll(x)
 #endif
@@ -157,7 +153,9 @@ const char *cci_stream_data (cci_stream_t in_stream)
     return in_stream ? in_stream->data : NULL;
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
@@ -221,7 +219,9 @@ cc_uint32 cci_stream_write (cci_stream_t  io_stream,
     return cci_check_error (err);
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
@@ -282,7 +282,9 @@ cc_uint32 cci_stream_write_string (cci_stream_t  io_stream,
     return cci_check_error (err);
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
@@ -323,7 +325,9 @@ cc_uint32 cci_stream_write_int32 (cci_stream_t io_stream,
     return cci_check_error (err);
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
@@ -364,7 +368,9 @@ cc_uint32 cci_stream_write_uint32 (cci_stream_t io_stream,
     return cci_check_error (err);
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
@@ -406,7 +412,9 @@ cc_uint32 cci_stream_write_int64 (cci_stream_t io_stream,
 }
 
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */
 
@@ -447,7 +455,9 @@ cc_uint32 cci_stream_write_uint64 (cci_stream_t io_stream,
     return cci_check_error (err);
 }
 
-#pragma mark - 
+#ifdef TARGET_OS_MAC
+#pragma mark -
+#endif
 
 /* ------------------------------------------------------------------------ */