Skip to content

Commit 719a30e

Browse files
committed
disable PEM support on MSVC
If someone wants to fix builds on MSVC, please step forward. Until then the library can still be used on Windows via `mingw-gcc`. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 1809bb0 commit 719a30e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/headers/tomcrypt_custom.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,4 +765,11 @@
765765
#undef LTC_ECC521
766766
#endif
767767

768+
/* MSVC can't build PEM */
769+
#if defined(LTC_PEM) && defined(_MSC_VER)
770+
#undef LTC_PEM
771+
#undef LTC_PEM_DECODE_BUFSZ
772+
#undef LTC_PEM_READ_BUFSIZE
773+
#endif
774+
768775
#endif /* TOMCRYPT_CUSTOM_H_ */

0 commit comments

Comments
 (0)