]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props.cxx
Add a function to calculate the normalmap from a regular texture.
[simgear.git] / simgear / props / props.cxx
index c6f5145b1e20bd1cbe5d1afff0d496d1100b191b..60a19aa41f51892d6432536c4e1d66c722eb7695 100644 (file)
@@ -30,8 +30,8 @@ SG_USING_STD(sort);
 SG_USING_STD(find);
 SG_USING_STD(vector);
 
-#ifdef _MSC_VER
-// MSVC is buggy, and needs something strange here
+#if ( _MSC_VER == 1200 )
+// MSVC is buggy, and needs something strange here
 SG_USING_STD(vector<SGPropertyNode_ptr>);
 SG_USING_STD(vector<SGPropertyChangeListener *>);
 SG_USING_STD(vector<SGPropertyNode *>);
@@ -71,12 +71,12 @@ public:
 // Default values for every type.
 ////////////////////////////////////////////////////////////////////////
 
-const bool SGRawValue<bool>::DefaultValue = false;
-const int SGRawValue<int>::DefaultValue = 0;
-const long SGRawValue<long>::DefaultValue = 0L;
-const float SGRawValue<float>::DefaultValue = 0.0;
-const double SGRawValue<double>::DefaultValue = 0.0L;
-const char * const SGRawValue<const char *>::DefaultValue = "";
+template<> const bool SGRawValue<bool>::DefaultValue = false;
+template<> const int SGRawValue<int>::DefaultValue = 0;
+template<> const long SGRawValue<long>::DefaultValue = 0L;
+template<> const float SGRawValue<float>::DefaultValue = 0.0;
+template<> const double SGRawValue<double>::DefaultValue = 0.0L;
+template<> const char * const SGRawValue<const char *>::DefaultValue = "";
 
 
 \f