diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-02-21 00:45:27 -0800 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-04-21 20:41:18 -0700 |
commit | 1dd8353cc490f954677285415ec01e253f84b93d (patch) | |
tree | 485b17eeaad2f25b85f5491a47d0224047ce9137 /src/pycrypto_common.h | |
parent | 076560be889ef220c8fb10dd68635468939345ab (diff) | |
download | pycrypto-1dd8353cc490f954677285415ec01e253f84b93d.tar.gz |
Add pycrypto_common.h and clean up a bunch of miscellaneous includes & typedefs
Diffstat (limited to 'src/pycrypto_common.h')
-rw-r--r-- | src/pycrypto_common.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/pycrypto_common.h b/src/pycrypto_common.h new file mode 100644 index 0000000..3182ec1 --- /dev/null +++ b/src/pycrypto_common.h @@ -0,0 +1,41 @@ +/* + * pycrypto_compat.h: Common header file for PyCrypto + * + * Written in 2013 by Dwayne C. Litzenberger <dlitz@dlitz.net> + * + * =================================================================== + * The contents of this file are dedicated to the public domain. To + * the extent that dedication to the public domain is not available, + * everyone is granted a worldwide, perpetual, royalty-free, + * non-exclusive license to exercise all rights associated with the + * contents of this file for any purpose whatsoever. + * No rights are reserved. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * =================================================================== + */ +#ifndef PYCRYPTO_COMMON_H +#define PYCRYPTO_COMMON_H + +#include "Python.h" +#include "pycrypto_compat.h" +#include "config.h" +#if HAVE_STDINT_H +# include <stdint.h> +#elif HAVE_INTTYPES_H +# include <inttypes.h> +#elif HAVE_SYS_INTTYPES_H +# include <sys/inttypes.h> +#else +# error "stdint.h and inttypes.h not found" +#endif + + +#endif /* PYCRYPTO_COMMON_H */ |