From: Michihiro NAKAJIMA Date: Wed, 12 May 2010 12:41:18 +0000 (-0400) Subject: __la_hash_*() are defined at archive_windows.c, those won't appear X-Git-Tag: v3.0.0a~1007 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74a491d651919d242181aa35eaf3c3f3b7c7abbf;p=thirdparty%2Flibarchive.git __la_hash_*() are defined at archive_windows.c, those won't appear on other platform. SVN-Revision: 2390 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a6a897810..562251f8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)