fpi-device: Adjust padding based on actual gpointer size

In some architectures pointer size is different. So let's adapt it to it
This commit is contained in:
Marco Trevisan (Treviño)
2021-10-31 19:19:41 +01:00
parent 77ff30e19d
commit ec8a9ba0fd
3 changed files with 26 additions and 2 deletions
+12
View File
@@ -172,7 +172,13 @@ struct _FpIdEntryTODV1_92_0
/*< private >*/
/* padding for future expansion */
#if GLIB_SIZEOF_VOID_P == 8
gpointer _padding_dummy[13];
#elif GLIB_SIZEOF_VOID_P == 4
gpointer _padding_dummy[11];
#else
G_STATIC_ASSERT("Unexpected pointer size")
#endif
};
typedef struct _FpIdEntryTODV1_92_0 FpIdEntryTODV1_92_0;
@@ -260,7 +266,13 @@ struct _FpDeviceClassTODV1_94_0
/*< private >*/
/* padding for future expansion */
#if GLIB_SIZEOF_VOID_P == 8
gpointer _padding_dummy[27];
#elif GLIB_SIZEOF_VOID_P == 4
gpointer _padding_dummy[26];
#else
G_STATIC_ASSERT("Unexpected pointer size")
#endif
};
typedef struct _FpDeviceClassTODV1_94_0 FpDeviceClassTODV1_94_0;