From 8983b7bafc668679e4cb5488276646a53112cbea Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Sun, 12 Jul 2015 13:59:28 -0700 Subject: [PATCH] Clang/libc++ requires header for fabs and other math functions --- Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.cpp | 2 ++ .../Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp | 2 ++ Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.cpp | 5 +++-- Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp | 2 +- Sources/Plasma/PubUtilLib/plSDL/plStateVariable.cpp | 5 +++-- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.cpp b/Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.cpp index a6f2a0e4..01cf2d45 100644 --- a/Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.cpp +++ b/Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.cpp @@ -65,6 +65,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "plAvatar/plArmatureMod.h" #include "plAvatar/plPhysicalControllerCore.h" +#include + // new stuff plCameraModifier1::plCameraModifier1() : diff --git a/Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp b/Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp index 6563c373..62f765b9 100644 --- a/Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp +++ b/Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp @@ -46,8 +46,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "plFile/plInitFileReader.h" #include "plFile/plEncryptedStream.h" #include "hsStringTokenizer.h" + #include #include +#include const uint32_t plAgePage::kInvalidSeqSuffix = (uint32_t)-1; diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.cpp b/Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.cpp index 23e76f89..5a04ea54 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.cpp +++ b/Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.cpp @@ -41,8 +41,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com *==LICENSE==*/ #pragma warning(disable: 4503 4786) -#include - #include "plAvatarMgr.h" // local @@ -87,6 +85,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "pnMessage/plTimeMsg.h" #include "plStatusLog/plStatusLog.h" +#include +#include + // The static single instance, allocated on demand by GetInstance() plAvatarMgr *plAvatarMgr::fInstance = nil; diff --git a/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp b/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp index b9853f9f..6fdfa1af 100644 --- a/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp +++ b/Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp @@ -111,7 +111,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include #include - +#include //////////////////////////////////////////////////////////////////// diff --git a/Sources/Plasma/PubUtilLib/plSDL/plStateVariable.cpp b/Sources/Plasma/PubUtilLib/plSDL/plStateVariable.cpp index 0fefdb9d..3fc632fd 100644 --- a/Sources/Plasma/PubUtilLib/plSDL/plStateVariable.cpp +++ b/Sources/Plasma/PubUtilLib/plSDL/plStateVariable.cpp @@ -39,8 +39,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com Mead, WA 99021 *==LICENSE==*/ -#include -#include #include "hsStream.h" #include "hsTimer.h" #include "plSDL.h" @@ -61,6 +59,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "plResMgr/plResManager.h" #include "plUnifiedTime/plClientUnifiedTime.h" +#include +#include +#include /***************************************************************************** *