Skip to content

Commit

Permalink
Fix comiling error in msys2
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Jul 1, 2024
1 parent dbef8ce commit c2da907
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions PowerEditor/src/MISC/sha1/sha1.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@
C4609560 A108A0C6 26AA7F2B 38A65566 739353C5
*/

#ifndef SHA1_H_A545E61D43E9404E8D736869AB3CBFE7
#define SHA1_H_A545E61D43E9404E8D736869AB3CBFE7
#pragma once

#if !defined(SHA1_UTILITY_FUNCTIONS) && !defined(SHA1_NO_UTILITY_FUNCTIONS)
#define SHA1_UTILITY_FUNCTIONS
Expand Down Expand Up @@ -154,22 +153,20 @@
#include <tchar.h>
#else
#ifndef TCHAR
#define TCHAR char
#endif
#ifndef _T
#define _T(__x) (__x)
#define _tmain main
#define _tprintf printf
#define _getts gets
#define _tcslen strlen
#define _tfopen fopen
#define _tcscpy strcpy
#define _tcscat strcat
#define _sntprintf snprintf
#define TCHAR wchar_t
#endif
#define _tmain wmain
#define _tprintf wprintf
#define _getts getws
#define _tcslen wcslen
#define _tfopen _wfopen
#define _tcscpy wcscpy
#define _tcscat wcscat
#define _sntprintf snwprintf
#endif
#endif


///////////////////////////////////////////////////////////////////////////
// Define variable types

Expand Down Expand Up @@ -279,4 +276,3 @@ class CSHA1
SHA1_WORKSPACE_BLOCK* m_block; // SHA1 pointer to the byte array above
};

#endif // SHA1_H_A545E61D43E9404E8D736869AB3CBFE7

0 comments on commit c2da907

Please sign in to comment.