Skip to content

Commit

Permalink
Support for MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Feb 5, 2017
1 parent 1215ad8 commit bbcd250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pycrypto_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ typedef unsigned __int64 uint64_t;
/*
* On Windows, distutils expects that a CPython module always exports the symbol init${MODNAME}
*/
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <Python.h>
#if PY_MAJOR_VERSION >= 3
#define FAKE_INIT(x) PyMODINIT_FUNC _PASTE2(PyInit__,x) (void) { return NULL; }
Expand All @@ -75,7 +75,7 @@ typedef unsigned __int64 uint64_t;
/*
* On Windows, functions must be explicitly marked for export.
*/
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
#define EXPORT_SYM __declspec(dllexport)
#else
#define EXPORT_SYM
Expand Down

0 comments on commit bbcd250

Please sign in to comment.