Menu

#1 sha256: Build problems under Windows

open
nobody
None
5
2003-11-04
2003-11-04
No

Package does not build out of the box for me under
Windows with VC++6
Basically, __WIN32__ does not seem to be defined by
default.

I fixed it by adding the following at the top of sha2.h:
#if defined(_MSC_VER)
#define __WIN32__
#endif

Discussion

  • Holger Dürer

    Holger Dürer - 2003-11-04
    • summary: Build problems under Windows --> sha256: Build problems under Windows
     
  • Jeff Connelly

    Jeff Connelly - 2005-07-17

    Logged In: YES
    user_id=31953

    I encountered the same problem. I think this fix would be
    better, because it should work on non-MS Windows compilers:

    #ifdef _WIN32
    #define __WIN32__
    #endif

     

Log in to post a comment.