summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/ccache/ccapi/stdcc.h
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-08-15 22:19:01 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-08-15 22:19:01 +0000
commitf0a6df2a4155034808e310a33c2994ff9e0dbca2 (patch)
treeba27f26d8e68f4c983953372cb6df2699dc18ee4 /src/lib/krb5/ccache/ccapi/stdcc.h
parent2b88f3ab8a09d818ae4b38d90da4f2fadae78ae2 (diff)
downloadkrb5-f0a6df2a4155034808e310a33c2994ff9e0dbca2.tar.gz
krb5-f0a6df2a4155034808e310a33c2994ff9e0dbca2.tar.xz
krb5-f0a6df2a4155034808e310a33c2994ff9e0dbca2.zip
Conditionalize building of CCAPI ccache type on USE_CCAPI
Still refer to Windows by OS macro because KfW builds do not set USE_CCAPI. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20664 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/ccache/ccapi/stdcc.h')
-rw-r--r--src/lib/krb5/ccache/ccapi/stdcc.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/krb5/ccache/ccapi/stdcc.h b/src/lib/krb5/ccache/ccapi/stdcc.h
index 4fe602799..dcd8b6b6c 100644
--- a/src/lib/krb5/ccache/ccapi/stdcc.h
+++ b/src/lib/krb5/ccache/ccapi/stdcc.h
@@ -1,18 +1,17 @@
+#if defined(_WIN32) || defined(USE_CCAPI)
+
#include "k5-int.h" /* loads krb5.h */
-
+
#ifdef USE_CCAPI_V3
#include <CredentialsCache.h>
#else
-#ifdef USE_CCAPI
-#include <CredentialsCache2.h>
-#else
#if defined(_WIN32)
#include "cacheapi.h"
-#endif
+#else
+#include <CredentialsCache2.h>
#endif
#endif
-
#define kStringLiteralLen 255
/* globals to be exported */
@@ -153,3 +152,5 @@ krb5_error_code KRB5_CALLCONV krb5_stdcc_get_flags
krb5_error_code KRB5_CALLCONV krb5_stdcc_remove
(krb5_context, krb5_ccache id , krb5_flags flags, krb5_creds *creds);
#endif
+
+#endif /* defined(_WIN32) || defined(USE_CCAPI) */