Commit 5faa1df8b93ebecf0f8fd5fe8fda7b9082eddced

Ali Chraghi 2022-09-29T18:25:41

[base] FT_Attach_Stream: Make `parameters` argument constant.

diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 90e0888..44d1b1a 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -2593,8 +2593,8 @@ FT_BEGIN_HEADER
    *   stream attachments.
    */
   FT_EXPORT( FT_Error )
-  FT_Attach_Stream( FT_Face        face,
-                    FT_Open_Args*  parameters );
+  FT_Attach_Stream( FT_Face              face,
+                    const FT_Open_Args*  parameters );
 
 
   /**************************************************************************
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 65945cb..7f1f063 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -2854,8 +2854,8 @@
   /* documentation is in freetype.h */
 
   FT_EXPORT_DEF( FT_Error )
-  FT_Attach_Stream( FT_Face        face,
-                    FT_Open_Args*  parameters )
+  FT_Attach_Stream( FT_Face              face,
+                    const FT_Open_Args*  parameters )
   {
     FT_Stream  stream;
     FT_Error   error;