From 9f24c38fe3119d0f620bd8efc3a31fb596e09a65 Mon Sep 17 00:00:00 2001 From: Mohammad Samiul Islam Date: Thu, 20 Jun 2019 19:03:32 +0100 Subject: [PATCH] Prevent definitions of expected.h from being included twice Bug: 135683564 Test: Included expected.h from two different files. Builds succesfully with the fix. Does not build without the fix. Change-Id: If1962a3b70f7580fa652a043aaf29bf592d1926c --- base/include/android-base/expected.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/include/android-base/expected.h b/base/include/android-base/expected.h index 08c9fb50d..957a8a000 100644 --- a/base/include/android-base/expected.h +++ b/base/include/android-base/expected.h @@ -14,6 +14,8 @@ * limitations under the License. */ +#pragma once + #include #include #include