Cryptbase compilation conflict

Hi Support,

I'm having a compilation issue when including your encryption-related headers (AESObj.hpp and CryptBase.hpp) in a C++ builder project.

The compiler reports conflicts with the Windows CryptoAPI functions:
[bcc64x Error] RandomCore.hpp(57): conflicting types for 'CryptAcquireContextW'
[bcc64x Hint] wincrypt.h(1105): expanded from macro 'CryptAcquireContext'
[bcc64x Hint] wincrypt.h(1097): previous declaration is here
[bcc64x Error] RandomCore.hpp(58): conflicting types for 'CryptGenRandom'
[bcc64x Hint] wincrypt.h(1224): previous declaration is here
[bcc64x Error] RandomCore.hpp(59): conflicting types for 'CryptReleaseContext'
[bcc64x Hint] wincrypt.h(1119): previous declaration is here
Failed

I identified that the headers internally define or reference the following symbols, which are also defined by wincrypt.h:

Is there any way to fix this?

Best regards,

Hello,
At this stage, I suggest to edit RandomCore.hpp to prevent redifinition of the functions with some #ifdef.