1. pygame
  2. Untitled project
  3. pygame

Commits

tanoku  committed 2b5d4d3

Fixed importing the sdl.event module in Python 3.0

  • Participants
  • Parent commits 11d72a8
  • Branches pgreloaded

Comments (0)

Files changed (1)

File src/sdl/eventmod.h

View file
 #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 {