Commit 4ca3d6d28f959793f412a6eb02211020a9204050

Brad Morgan 2013-05-07T14:37:15

Added ifdef

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/include/git2/transport.h b/include/git2/transport.h
index c455e9e..b3d43eb 100644
--- a/include/git2/transport.h
+++ b/include/git2/transport.h
@@ -31,8 +31,10 @@ GIT_BEGIN_DECL
 typedef enum {
 	/* git_cred_userpass_plaintext */
 	GIT_CREDTYPE_USERPASS_PLAINTEXT = 1,
+#ifdef GIT_SSH
 	GIT_CREDTYPE_SSH_KEYFILE_PASSPHRASE = 2,
 	GIT_CREDTYPE_SSH_PUBLICKEY = 3,
+#endif
 } git_credtype_t;
 
 /* The base structure for all credential types */