]> git.mxchange.org Git - simgear.git/blobdiff - simgear/constants.h
MSVC fixes.
[simgear.git] / simgear / constants.h
index 171a8976e3773cff4d4acae67e9aa392cd2ec634..e3bd3c1e1317c922b0f964415a3102319644b14f 100644 (file)
@@ -2,7 +2,7 @@
 //
 // Written by Curtis Olson, started February 2000.
 //
-// Copyright (C) 2000  Curtis L. Olson  - curt@flightgear.org
+// Copyright (C) 2000  Curtis L. Olson - http://www.flightgear.org/~curt/
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Library General Public
@@ -32,6 +32,9 @@
 
 #include <simgear/compiler.h>
 
+#ifdef _MSC_VER
+#  define  _USE_MATH_DEFINES
+#endif
 #ifdef SG_HAVE_STD_INCLUDES
 #  include <cmath>
 #else
 /** Miles per hour to Miles per second */
 #define SG_MPH_TO_MPS       0.44704
 
-/** Miles per second to Kilometers per hour */
+/** Meters per second to Kilometers per hour */
 #define SG_MPS_TO_KMH       3.6
 
 /** Kilometers per hour to Miles per second */