#ifndef THIRD_PARTY_UPB_BITS_GOLANG_OFFSETS_H_
#define THIRD_PARTY_UPB_BITS_GOLANG_OFFSETS_H_

#include <stddef.h>

#include "upb/message/internal/message.h"

// Go cannot reference zero-sized struct members, such as the flexible array
// member of upb_Message_Internal - but we can smuggle the value as a constant
// by creating a struct of that size, and then reading its size in Go.
struct upb_Message_Internal_aux_data_offset_for_golang {
  char filler[offsetof(upb_Message_Internal, aux_data)];
};

#endif  // THIRD_PARTY_UPB_BITS_GOLANG_OFFSETS_H_
