Skip to content

Commit

Permalink
rearrange struct alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 6, 2023
1 parent 6e5ea45 commit a3f6354
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ZitiNativeApiForDotnetCore/includes/ziti4dotnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
extern "C" {
#endif

#define FIELD_WITH_CHECK(FIELD_TYPE, FIELD_NAME) FIELD_TYPE FIELD_NAME; \
const char* FIELD_NAME##_checksum; \
uint32_t FIELD_NAME##_size; \
uint32_t FIELD_NAME##_offset
#define FIELD_WITH_CHECK(FIELD_TYPE, FIELD_NAME) \
uint32_t FIELD_NAME##_offset; \
uint32_t FIELD_NAME##_size; \
const char* FIELD_NAME##_checksum; \
FIELD_TYPE FIELD_NAME;

typedef struct ziti_types_s {
FIELD_WITH_CHECK(uint32_t, total_size);

Expand Down

0 comments on commit a3f6354

Please sign in to comment.