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/plPhysicalControllerCore.h"
#include <cmath>
// new stuff
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/plEncryptedStream.h"
#include "hsStringTokenizer.h"
#include <functional>
#include <algorithm>
#include <cmath>
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==*/
#pragma warning(disable: 4503 4786)
#include <algorithm>
#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 <algorithm>
#include <cmath>
// The static single instance, allocated on demand by GetInstance()
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 <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
*==LICENSE==*/
#include <cfloat>
#include <type_traits>
#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 <type_traits>
#include <cfloat>
#include <cmath>
/*****************************************************************************
*

Loading…
Cancel
Save