Commits

Anonymous committed 2b5d4d3

Fixed importing the sdl.event module in Python 3.0

Comments (0)

Files changed (1)

src/sdl/eventmod.h

 #include <Python.h>
 #include <SDL.h>
 
+/*
+ * HACK: The 'IS_PYTHON_3' define is somehow
+ * not declared when compiling this module.
+ * We need to manually include pgcompat.h
+ */
+#include "pgcompat.h"
+
 #define PYGAME_SDLEVENT_INTERNAL
 
 typedef struct {