diff --git a/internal/core/src/common/CGoHelper.h b/internal/core/src/common/CGoHelper.h index 57ce59085b..a0707f7c0f 100644 --- a/internal/core/src/common/CGoHelper.h +++ b/internal/core/src/common/CGoHelper.h @@ -9,9 +9,13 @@ // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express // or implied. See the License for the specific language governing permissions and limitations under the License -#include "common/type_c.h" +#pragma once + #include +#include "common/type_c.h" + namespace milvus { + inline CProtoResult AllocCProtoResult(const google::protobuf::Message& msg) { auto size = msg.ByteSize();