I do not know C, I think it should look like this patch:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
include/dwg.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/dwg.h b/include/dwg.h
index 946df205..4b040939 100644
--- a/include/dwg.h
+++ b/include/dwg.h
@@ -8237,6 +8237,8 @@ typedef struct _dwg_object_entity
BITCODE_H full_visualstyle; /*!< r2010+ code 5, DXF 348 */
BITCODE_H face_visualstyle;
BITCODE_H edge_visualstyle;
+ void *user_data /* this is not used in any way in LibreDWG, !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
+ /* it is created and freed in the application!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
} Dwg_Object_Entity;
/**
@@ -8494,6 +8496,8 @@ typedef struct _dwg_object_object
/*unsigned int num_handles;*/
Dwg_Handle *handleref; //??
+ void *user_data /* this is not used in any way in LibreDWG, !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
+ /* it is created and freed in the application!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
} Dwg_Object_Object;
/**
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////