| 1 | #include <fontforge-config.h> |
| 2 | |
| 3 | #include <Python.h> |
| 4 | |
| 5 | extern PyMODINIT_FUNC fontforge_python_init(const char* modulename); |
| 6 | |
| 7 | #if !defined(_WIN32) |
| 8 | /* Strong symbol to override weak symbol in libfontforge on Linux/macOS */ |
| 9 | int ff_is_pyhook_context(void) { |
| 10 | return 1; |
| 11 | } |
| 12 | #endif |
| 13 | |
| 14 | PyMODINIT_FUNC PyInit_fontforge(void) { |
| 15 | return fontforge_python_init("fontforge"); |
| 16 | } |