Skip to content

Commit f1762c1

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 5a78a9d commit f1762c1

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
@@ -759,4 +759,11 @@
759759
#undef LTC_ECC521
760760
#endif
761761

762+
/* MSVC can't build PEM */
763+
#if defined(LTC_PEM) && defined(_MSC_VER)
764+
#undef LTC_PEM
765+
#undef LTC_PEM_DECODE_BUFSZ
766+
#undef LTC_PEM_READ_BUFSIZE
767+
#endif
768+
762769
#endif /* TOMCRYPT_CUSTOM_H_ */

0 commit comments

Comments
 (0)