PYTHON-2260 Include Python.h before any standard headers

This commit is contained in:
Shane Harvey 2020-05-27 14:28:49 -07:00
parent 0eace78cf4
commit 29960237dc

View File

@ -14,13 +14,13 @@
* limitations under the License.
*/
#include <stdlib.h>
#include <string.h>
/* Include Python.h so we can set Python's error indicator. */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <stdlib.h>
#include <string.h>
#include "buffer.h"
#define INITIAL_BUFFER_SIZE 256