don't include time.h in CredentialsCache.h if it's not needed
authorAlexandra Ellwood <lxs@mit.edu>
Thu, 14 Jun 2007 22:40:51 +0000 (22:40 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Thu, 14 Jun 2007 22:40:51 +0000 (22:40 +0000)
ticket: new

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

src/ccapi/common/cci_common.h
src/ccapi/server/ccs_common.h
src/include/CredentialsCache.h

index 09b4892cec44719b7a8321d838de96c8089749b5..b961ffdb993ea0f56f490bebce708125b46c4ddd 100644 (file)
 #ifndef CCI_COMMON_H
 #define CCI_COMMON_H
 
+#include <CredentialsCache.h>
+
 #include <sys/types.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <com_err.h>
 
 #if TARGET_OS_MAC
-#include <stdint.h>
 #include <unistd.h>
 #define VECTOR_FUNCTIONS_INITIALIZER ,NULL
 #else
 #include "win-mac.h"
 #define VECTOR_FUNCTIONS_INITIALIZER
+/* hide "#pragma mark" warnings on Windows */
 #pragma warning (disable: 4068)
 #endif
 
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <com_err.h>
-
-#include <CredentialsCache.h>
-
 #define k_cci_context_initial_ccache_name "Initial default ccache"
 
 #include "cci_cred_union.h"
index 2013c9e10034ce61413024bf8e005ffbdf9a26c9..42a427c087d5ef10fd5c73683a13ae508b0641cc 100644 (file)
@@ -29,6 +29,8 @@
 
 #include "cci_common.h"
 
+#include <time.h>
+
 #include "ccs_array.h"
 #include "ccs_list.h"
 #include "ccs_cache_collection.h"
index c2e472038cec4ba638377752e4a2340e6192da10..43705e57140a89e665b1d0fde6e78c5a99c74f83 100644 (file)
@@ -34,7 +34,7 @@
 #if defined(_WIN32)
 #include <winsock.h>
 #else
-#include <sys/types.h>
+#include <stdint.h>
 #endif
 
 #ifdef __cplusplus
@@ -58,8 +58,6 @@ extern "C" {
 #define CCACHE_API
 #endif
 
-#include <time.h>
-
 /*
  * Constants
  */