diff --git a/cocos/ui/GUIDefine.h b/cocos/ui/GUIDefine.h index 1df8a99884..99207e3248 100644 --- a/cocos/ui/GUIDefine.h +++ b/cocos/ui/GUIDefine.h @@ -25,7 +25,6 @@ #ifndef __TestCpp__GUIDefine__ #define __TestCpp__GUIDefine__ -#include "cocos2d.h" #include #include "cocostudio/ObjectFactory.h" diff --git a/cocos/ui/UIHelper.cpp b/cocos/ui/UIHelper.cpp index 7e0e4ca169..11b44c6b1d 100644 --- a/cocos/ui/UIHelper.cpp +++ b/cocos/ui/UIHelper.cpp @@ -22,7 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ -#include "CocosGUI.h" +#include "ui/UIHelper.h" +#include "ui/UIWidget.h" NS_CC_BEGIN diff --git a/cocos/ui/UIHelper.h b/cocos/ui/UIHelper.h index c16f90e669..68fa8dbfb9 100644 --- a/cocos/ui/UIHelper.h +++ b/cocos/ui/UIHelper.h @@ -25,9 +25,14 @@ THE SOFTWARE. #ifndef __UIHELPER_H__ #define __UIHELPER_H__ +#include +#include "base/CCPlatformMacros.h" + NS_CC_BEGIN namespace ui { + + class Widget; /** * @js NA