From: Chuanbo Weng Date: Tue, 6 May 2014 10:48:26 +0000 (+0800) Subject: GBE: Fix one build error of friend declaration for a class. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42136987b9925396ad138cc2493bed8ab11cbe35;p=contrib%2Fbeignet.git GBE: Fix one build error of friend declaration for a class. If the g++ is older than 4.7.0, the class-key of the elaborated-type-specifier is required in a friend declaration for a class. So modify the code to make it compitible with old g++ version. Signed-off-by: Chuanbo Weng Reviewed-by: Zhigang Gong --- diff --git a/backend/src/backend/gen_context.hpp b/backend/src/backend/gen_context.hpp index 3b59797..3eda148 100644 --- a/backend/src/backend/gen_context.hpp +++ b/backend/src/backend/gen_context.hpp @@ -195,7 +195,7 @@ namespace gbe /*! allocate a new curbe register and insert to curbe pool. */ void allocCurbeReg(ir::Register reg, gbe_curbe_type value, uint32_t subValue = 0); - friend GenRegAllocator; //!< need to access errCode directly. + friend class GenRegAllocator; //!< need to access errCode directly. };