summaryrefslogtreecommitdiff
path: root/tools/stats_log_api_gen/native_writer.h
diff options
context:
space:
mode:
authorSalud Lemus <saludlemus@google.com>2020-07-28 19:23:56 +0000
committerSalud Lemus <saludlemus@google.com>2020-07-31 17:31:53 +0000
commit0cbe9d948bbe7f280455e5a8224d99341fac7adb (patch)
tree86d327912fe862fe30bf58b0e3423fbb4dbe686d /tools/stats_log_api_gen/native_writer.h
parent6d8780292a2cc1edd7e5d2d6cea6e1d3877a87dc (diff)
Update stats-log-api-gen source based off of google3 presubmit checks
Bug: 161812407 Test: `m statslog-framework-java-gen` Test: `m statslog-telephony-java-gen` Test: `m stats-log-api-gen-test && out/host/linux-x86/nativetest/stats-log-api-gen-test/stats-log-api-gen-test` Change-Id: Id68982e306fbc379ed8e90b33a38b8a6604e66ad
Diffstat (limited to 'tools/stats_log_api_gen/native_writer.h')
-rw-r--r--tools/stats_log_api_gen/native_writer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/stats_log_api_gen/native_writer.h b/tools/stats_log_api_gen/native_writer.h
index 264d4db29fc9..4e42d1fa2809 100644
--- a/tools/stats_log_api_gen/native_writer.h
+++ b/tools/stats_log_api_gen/native_writer.h
@@ -14,7 +14,8 @@
* limitations under the License.
*/
-#pragma once
+#ifndef ANDROID_STATS_LOG_API_GEN_NATIVE_WRITER_H
+#define ANDROID_STATS_LOG_API_GEN_NATIVE_WRITER_H
#include <stdio.h>
#include <string.h>
@@ -24,8 +25,6 @@
namespace android {
namespace stats_log_api_gen {
-using namespace std;
-
int write_stats_log_cpp(FILE* out, const Atoms& atoms, const AtomDecl& attributionDecl,
const string& cppNamespace, const string& importHeader,
const bool supportQ);
@@ -35,3 +34,5 @@ int write_stats_log_header(FILE* out, const Atoms& atoms, const AtomDecl& attrib
} // namespace stats_log_api_gen
} // namespace android
+
+#endif // ANDROID_STATS_LOG_API_GEN_NATIVE_WRITER_H