20e524
diff --git a/include/freetype/ftmodapi.h b/include/freetype/ftmodapi.h
20e524
index 8d039c4f3..88488bfe8 100644
20e524
--- a/include/freetype/ftmodapi.h
20e524
+++ b/include/freetype/ftmodapi.h
20e524
@@ -623,7 +623,7 @@ FT_BEGIN_HEADER
20e524
    *     it is bytecode interpreter's execution context, `TT_ExecContext`,
20e524
    *     which is declared in FreeType's internal header file `tttypes.h`.
20e524
    */
20e524
-  typedef FT_Error
20e524
+  typedef void
20e524
   (*FT_DebugHook_Func)( void*  arg );
20e524
 
20e524