Browse Source

GLM_EXTERNAL_TEMPLATE macro condition for inline files

alma 15 years ago
parent
commit
19ed9524f8

+ 2 - 0
glm/core/type_mat2x2.hpp

@@ -240,6 +240,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 } //namespace glm
 } //namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_mat2x2.inl"
 #include "type_mat2x2.inl"
+#endif
 
 
 #endif //glm_core_type_mat2x2
 #endif //glm_core_type_mat2x2

+ 2 - 0
glm/core/type_mat2x3.hpp

@@ -207,6 +207,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 } //namespace glm
 } //namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_mat2x3.inl"
 #include "type_mat2x3.inl"
+#endif
 
 
 #endif //glm_core_type_mat2x3
 #endif //glm_core_type_mat2x3

+ 2 - 0
glm/core/type_mat2x4.hpp

@@ -207,6 +207,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 } //namespace glm
 } //namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_mat2x4.inl"
 #include "type_mat2x4.inl"
+#endif
 
 
 #endif //glm_core_type_mat2x4
 #endif //glm_core_type_mat2x4

+ 2 - 0
glm/core/type_mat3x2.hpp

@@ -209,6 +209,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 } //namespace glm
 } //namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_mat3x2.inl"
 #include "type_mat3x2.inl"
+#endif
 
 
 #endif //glm_core_type_mat3x2
 #endif //glm_core_type_mat3x2

+ 2 - 0
glm/core/type_mat3x3.hpp

@@ -239,6 +239,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 } //namespace glm
 } //namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_mat3x3.inl"
 #include "type_mat3x3.inl"
+#endif
 
 
 #endif //glm_core_type_mat3x3
 #endif //glm_core_type_mat3x3

+ 2 - 0
glm/core/type_mat3x4.hpp

@@ -209,6 +209,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 } //namespace glm
 } //namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_mat3x4.inl"
 #include "type_mat3x4.inl"
+#endif
 
 
 #endif //glm_core_type_mat3x4
 #endif //glm_core_type_mat3x4

+ 2 - 0
glm/core/type_mat4x2.hpp

@@ -211,6 +211,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 } //namespace glm
 } //namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_mat4x2.inl"
 #include "type_mat4x2.inl"
+#endif
 
 
 #endif //glm_core_type_mat4x2
 #endif //glm_core_type_mat4x2

+ 2 - 0
glm/core/type_mat4x3.hpp

@@ -211,6 +211,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 } //namespace glm
 } //namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_mat4x3.inl"
 #include "type_mat4x3.inl"
+#endif
 
 
 #endif//glm_core_type_mat4x3
 #endif//glm_core_type_mat4x3

+ 2 - 0
glm/core/type_mat4x4.hpp

@@ -239,6 +239,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 } //namespace glm
 } //namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_mat4x4.inl"
 #include "type_mat4x4.inl"
+#endif
 
 
 #endif //glm_core_type_mat4x4
 #endif //glm_core_type_mat4x4

+ 2 - 0
glm/core/type_vec1.hpp

@@ -167,6 +167,8 @@ namespace glm
 	} //namespace detail
 	} //namespace detail
 }//namespace glm
 }//namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_vec1.inl"
 #include "type_vec1.inl"
+#endif
 
 
 #endif//glm_core_type_gentype1
 #endif//glm_core_type_gentype1

+ 2 - 0
glm/core/type_vec2.hpp

@@ -245,6 +245,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 }//namespace glm
 }//namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_vec2.inl"
 #include "type_vec2.inl"
+#endif
 
 
 #endif//glm_core_type_gentype2
 #endif//glm_core_type_gentype2

+ 2 - 0
glm/core/type_vec3.hpp

@@ -251,6 +251,8 @@ namespace glm
 	}//namespace core
 	}//namespace core
 }//namespace glm
 }//namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_vec3.inl"
 #include "type_vec3.inl"
+#endif
 
 
 #endif//glm_core_type_gentype3
 #endif//glm_core_type_gentype3

+ 2 - 0
glm/core/type_vec4.hpp

@@ -271,6 +271,8 @@ namespace glm
 
 
 }//namespace glm
 }//namespace glm
 
 
+#ifndef GLM_EXTERNAL_TEMPLATE
 #include "type_vec4.inl"
 #include "type_vec4.inl"
+#endif
 
 
 #endif//glm_core_type_gentype4
 #endif//glm_core_type_gentype4