]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
__la_hash_*() are defined at archive_windows.c, those won't appear
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 12 May 2010 12:41:18 +0000 (08:41 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 12 May 2010 12:41:18 +0000 (08:41 -0400)
on other platform.

SVN-Revision: 2390

CMakeLists.txt

index a6a897810a6abba5b475d311817aafb4d3d602a7..562251f8cf4ba71551299b181542c6a4ae1d2fc9 100644 (file)
@@ -289,6 +289,9 @@ MACRO(CHECK_MD HASH IMPLEMENTATIONS)
 #endif
 #include \"archive_hash.h\"
 
+#if defined(_WIN32) && !defined(__CYGWIN__)
+/* __la_hash_*() are defined at archive_windows.c, those appear on
+ * Windows platform only. */
 #if defined(ARCHIVE_HASH_MD5_WIN)    ||\\
     defined(ARCHIVE_HASH_SHA1_WIN)   || defined(ARCHIVE_HASH_SHA256_WIN) ||\\
     defined(ARCHIVE_HASH_SHA384_WIN) || defined(ARCHIVE_HASH_SHA512_WIN)
@@ -298,6 +301,7 @@ void __la_hash_Init(Digest_CTX *ctx, ALG_ID algId){ ;}
 void __la_hash_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len) {;}
 void __la_hash_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) {;}
 #endif
+#endif
 
 int
 main(int argc, char **argv)