mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
alignment: set alignment on structs
This uses an alternate idea for setting the structure alignments. Lets see if this silents the ARM builder cast alignment issues. GSlice (which is what is used for GObjects) guarantees a 2-pointer size allocation, which means we can be ensured that the alignment is at least 8 bytes.
This commit is contained in:
@ -25,6 +25,8 @@ G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_VISUALIZER_TICKS (sp_visualizer_ticks_get_type())
|
||||
|
||||
typedef struct _SpVisualizerTicks SpVisualizerTicks __attribute__((aligned(8)));
|
||||
|
||||
G_DECLARE_FINAL_TYPE (SpVisualizerTicks, sp_visualizer_ticks, SP, VISUALIZER_TICKS, GtkDrawingArea)
|
||||
|
||||
GtkWidget *sp_visualizer_ticks_new (void);
|
||||
|
||||
Reference in New Issue
Block a user