Please don't duplicate all this code, you can just do something like

    #ifdef _WIN32
    #define ALIGNEDSTRUCT(alignment) __declspec(align(alignment)) struct
    #else 
    #define ALIGNEDSTRUCT(alignment) struct alignas(alignment)
    #endif 

then use it as

    ALIGNEDSTRUCT(8) CellTraceHeader{
        //....
    };