From 21ed12045bb69544f1a0be6600a75564b571371e Mon Sep 17 00:00:00 2001 From: "Yan, Shaobo" Date: Thu, 20 Dec 2018 11:21:04 +0000 Subject: [PATCH] Guard header files in utils with #ifdef and #endif Some header files in utils missing #ifdef and #endif and this caused including header files multiple times. This patch fix it. BUG=dawn:72 Change-Id: Ib28b1a1cef91e49a5754ec6b3d66327076070d99 Reviewed-on: https://dawn-review.googlesource.com/c/3461 Reviewed-by: Corentin Wallez Commit-Queue: Corentin Wallez --- src/utils/DawnHelpers.h | 5 +++++ src/utils/SystemUtils.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/utils/DawnHelpers.h b/src/utils/DawnHelpers.h index 1bbe87f1fd..538ebe0e7c 100644 --- a/src/utils/DawnHelpers.h +++ b/src/utils/DawnHelpers.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef UTILS_DAWNHELPERS_H_ +#define UTILS_DAWNHELPERS_H_ + #include #include @@ -98,3 +101,5 @@ namespace utils { std::initializer_list bindingsInitializer); } // namespace utils + +#endif // UTILS_DAWNHELPERS_H_ \ No newline at end of file diff --git a/src/utils/SystemUtils.h b/src/utils/SystemUtils.h index 465e0f66e7..828eb58aab 100644 --- a/src/utils/SystemUtils.h +++ b/src/utils/SystemUtils.h @@ -12,7 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef UTILS_SYSTEMUTILS_H_ +#define UTILS_SYSTEMUTILS_H_ + namespace utils { void USleep(unsigned int usecs); } + +#endif // UTILS_SYSTEMUTILS_H_ \ No newline at end of file