# Struct field alignment

**URL:** <https://discourse.julialang.org/t/struct-field-alignment/35856>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [March 11, 2020, 10:45pm UTC](https://discourse.julialang.org/t/struct-field-alignment/35856 "2020-03-11T22:45:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hros](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hros](https://discourse.julialang.org/u/hros)\
**Post date:** [March 11, 2020, 10:45pm UTC](https://discourse.julialang.org/t/struct-field-alignment/35856/1 "2020-03-11T22:45:17Z")

</div>

I am creating a `struct` which is intended to be passed to C library function using `ccall`.  
The C definition uses an alignment attribute.  
I can use the `@calign` macro from the [CBinding](https://github.com/analytech-solutions/CBinding.jl) package, but this involves some unwanted complications.  
Is there a way to specify the alignment without this package?
