diff --git a/src/_tkagg.cpp b/src/_tkagg.cpp index d74800d5241d..3e5793f03ce8 100644 --- a/src/_tkagg.cpp +++ b/src/_tkagg.cpp @@ -33,6 +33,9 @@ #define dlsym GetProcAddress #else #include +// Suppress -Wunused-function on POSIX, but not on Windows where that would +// lead to PY_ARRAY_UNIQUE_SYMBOL being an unresolved external. +#define NO_IMPORT_ARRAY #endif // Include our own excerpts from the Tcl / Tk headers