Răsfoiți Sursa

MSVC10 fix, removed old example project from Windows examples solution

Ivan Safrin 12 ani în urmă
părinte
comite
45692828a4

+ 7 - 2
Core/Contents/Include/PolyGlobals.h

@@ -85,15 +85,20 @@ THE SOFTWARE.
 #endif
 
 typedef double Number;
-/*
+
 #ifdef _WINDOWS
+#ifdef _MSC_VER
+#if _MSC_VER<=1600
+
 #include <cmath>	//cmath for "round / floor"
 
 inline int round(Number x) { 
 	return floor(x + 0.5); 
 }
+#endif 
 #endif
-*/
+#endif
+
 #define RANDOM_NUMBER ((Number)rand()/(Number)RAND_MAX)
 
 inline Number clampf(Number x, Number a, Number b)

+ 0 - 2
Examples/C++/Build/Windows/PolycodeExamples/PolycodeExamples.sln

@@ -13,8 +13,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2DPhysics_Joints", "2DPhysi
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2DPhysics_PointCollision", "2DPhysics_PointCollision\2DPhysics_PointCollision.vcxproj", "{9E6D3E8C-09FE-46F2-B96A-95E8FC6F3C87}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "2DShapes", "2DShapes\2DShapes.vcxproj", "{4ED670DE-75E4-44F7-8C55-34356C5AD4FD}"
-EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Transforms", "Transforms\Transforms.vcxproj", "{7ABD5439-B7BD-495D-88BE-7EC7469AC681}"
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PositionalSounds", "PositionalSounds\PositionalSounds.vcxproj", "{C9E390FF-1EB2-420A-8C5A-774F0FB4AA98}"