Skip to content

Commit df05199

Browse files
Merge pull request #2 from enlight/windows-inttypes-fix
u_intXX_t types are not defined on Windows, use inttypes.h instead.
2 parents cc25e2b + afe35de commit df05199

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sha2.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
*/
4343
#include <sys/types.h>
4444

45+
#ifdef OPEN_DYLAN_PLATFORM_WINDOWS
46+
#define SHA2_USE_INTTYPES_H
47+
#endif // OPEN_DYLAN_PLATFORM_WINDOWS
48+
4549
#ifdef SHA2_USE_INTTYPES_H
4650

4751
#include <inttypes.h>

0 commit comments

Comments
 (0)