blob: b00cab5c82ebeb5ac1d6d072ae5e6d25a9f08fca [file] [log] [blame]
// Copyright 2014 Cloudera, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License 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.
//
// Simple header which is inserted into all of our generated protobuf code.
// We use this to hook protobuf code up to TSAN annotations.
#ifndef KUDU_UTIL_PROTOBUF_ANNOTATIONS_H
#define KUDU_UTIL_PROTOBUF_ANNOTATIONS_H
#include "kudu/gutil/dynamic_annotations.h"
// The protobuf internal headers are included before this, so we have to undefine
// the empty definitions first.
#undef GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN
#undef GOOGLE_SAFE_CONCURRENT_WRITES_END
#define GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN ANNOTATE_IGNORE_WRITES_BEGIN
#define GOOGLE_SAFE_CONCURRENT_WRITES_END ANNOTATE_IGNORE_WRITES_END
#endif /* KUDU_UTIL_PROTOBUF_ANNOTATIONS_H */