From ff8d2617779ac86ef1ce2515d30bf92f4c205a10 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Fri, 26 May 2017 18:12:31 +0800 Subject: [PATCH] Fix baidu gcc toolchain compile --- paddle/utils/arch/linux/Locks.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paddle/utils/arch/linux/Locks.cpp b/paddle/utils/arch/linux/Locks.cpp index 310c9a6542..3a0903d1f2 100644 --- a/paddle/utils/arch/linux/Locks.cpp +++ b/paddle/utils/arch/linux/Locks.cpp @@ -55,8 +55,11 @@ public: }; #else - +// clang-format off +#include #include +// clang-format on + class SpinLockPrivate { public: inline void lock() { -- GitLab