Browse Source

Clang/libc++ requires <cmath> header for fabs and other math functions

Michael Hansen 9 years ago
parent
commit
8983b7bafc
  1. 2
      Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.cpp
  2. 2
      Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp
  3. 5
      Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.cpp
  4. 2
      Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp
  5. 5
      Sources/Plasma/PubUtilLib/plSDL/plStateVariable.cpp

2
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/plArmatureMod.h"
#include "plAvatar/plPhysicalControllerCore.h" #include "plAvatar/plPhysicalControllerCore.h"
#include <cmath>
// new stuff // new stuff
plCameraModifier1::plCameraModifier1() : plCameraModifier1::plCameraModifier1() :

2
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/plInitFileReader.h"
#include "plFile/plEncryptedStream.h" #include "plFile/plEncryptedStream.h"
#include "hsStringTokenizer.h" #include "hsStringTokenizer.h"
#include <functional> #include <functional>
#include <algorithm> #include <algorithm>
#include <cmath>
const uint32_t plAgePage::kInvalidSeqSuffix = (uint32_t)-1; const uint32_t plAgePage::kInvalidSeqSuffix = (uint32_t)-1;

5
Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.cpp

@ -41,8 +41,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#pragma warning(disable: 4503 4786) #pragma warning(disable: 4503 4786)
#include <algorithm>
#include "plAvatarMgr.h" #include "plAvatarMgr.h"
// local // local
@ -87,6 +85,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnMessage/plTimeMsg.h" #include "pnMessage/plTimeMsg.h"
#include "plStatusLog/plStatusLog.h" #include "plStatusLog/plStatusLog.h"
#include <algorithm>
#include <cmath>
// The static single instance, allocated on demand by GetInstance() // The static single instance, allocated on demand by GetInstance()
plAvatarMgr *plAvatarMgr::fInstance = nil; plAvatarMgr *plAvatarMgr::fInstance = nil;

2
Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp

@ -111,7 +111,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>
#include <cmath>
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

5
Sources/Plasma/PubUtilLib/plSDL/plStateVariable.cpp

@ -39,8 +39,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021 Mead, WA 99021
*==LICENSE==*/ *==LICENSE==*/
#include <cfloat>
#include <type_traits>
#include "hsStream.h" #include "hsStream.h"
#include "hsTimer.h" #include "hsTimer.h"
#include "plSDL.h" #include "plSDL.h"
@ -61,6 +59,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plResMgr/plResManager.h" #include "plResMgr/plResManager.h"
#include "plUnifiedTime/plClientUnifiedTime.h" #include "plUnifiedTime/plClientUnifiedTime.h"
#include <type_traits>
#include <cfloat>
#include <cmath>
/***************************************************************************** /*****************************************************************************
* *

Loading…
Cancel
Save