diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-02-17 11:39:05 -0800 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-02-17 11:39:49 -0800 |
commit | d715685ae7f5a26ee90a23db5832e4243ce3af45 (patch) | |
tree | cb85ad0d86b0bf4c9e86a659d04e77bfd6031200 /src/hash_SHA2.h | |
parent | e85ae486ab9b7ec1bee51431888283ac7a7fcaa2 (diff) | |
download | pycrypto-d715685ae7f5a26ee90a23db5832e4243ce3af45.tar.gz |
Fix compiler warning about "_POSIX_C_SOURCE" being redefined in string.h
The solution is to include Python.h before string.h is included.
Diffstat (limited to 'src/hash_SHA2.h')
-rw-r--r-- | src/hash_SHA2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hash_SHA2.h b/src/hash_SHA2.h index 5867191..02991bd 100644 --- a/src/hash_SHA2.h +++ b/src/hash_SHA2.h @@ -26,6 +26,8 @@ #ifndef __HASH_SHA2_H #define __HASH_SHA2_H +#include "Python.h" + /* check if implementation set the correct macros */ #ifndef MODULE_NAME #error SHA2 Implementation must define MODULE_NAME before including this header |