~ubuntu-branches/ubuntu/maverick/pygame/maverick

« back to all changes in this revision

Viewing changes to src/font.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-14 17:02:11 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100114170211-21eop2ja7mr9vdcr
Tags: 1.9.1release-0ubuntu1
* New upstream version (lp: #433304)
* debian/control:
  - build-depends on libportmidi-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
*/
22
22
 
23
23
#include <Python.h>
 
24
#if defined(HAVE_SNPRINTF)  /* also defined in SDL_ttf (SDL.h) */
 
25
#undef HAVE_SNPRINTF        /* remove GCC macro redefine warning */
 
26
#endif
24
27
#include <SDL_ttf.h>
25
28
 
26
29
 
44
47
#define PyFont_New (*(PyObject*(*)(TTF_Font*))PyFONT_C_API[1])
45
48
/*slot 2 taken by FONT_INIT_CHECK*/
46
49
#define import_pygame_font() { \
47
 
        PyObject *module = PyImport_ImportModule("pygame.font"); \
 
50
        PyObject *module = PyImport_ImportModule(MODPREFIX "font"); \
48
51
        if (module != NULL) { \
49
52
                PyObject *dict = PyModule_GetDict(module); \
50
53
                PyObject *c_api = PyDict_GetItemString(dict, PYGAMEAPI_LOCAL_ENTRY); \