Fixed ticket #157, conflict with WinGDI.h

This commit is contained in:
Christophe Riccio 2011-12-17 18:55:30 +00:00
parent 77253ea03f
commit de3305ccef
3 changed files with 18 additions and 18 deletions

View File

@ -357,82 +357,82 @@ namespace detail
{
enum
{
ERROR,
FLOAT,
INT
GLM_ERROR,
GLM_FLOAT,
GLM_INT
};
};
template <typename T>
struct float_or_int_trait
{
enum{ID = float_or_int_value::ERROR};
enum{ID = float_or_int_value::GLM_ERROR};
};
template <>
struct float_or_int_trait<int8>
{
enum{ID = float_or_int_value::INT};
enum{ID = float_or_int_value::GLM_INT};
};
template <>
struct float_or_int_trait<int16>
{
enum{ID = float_or_int_value::INT};
enum{ID = float_or_int_value::GLM_INT};
};
template <>
struct float_or_int_trait<int32>
{
enum{ID = float_or_int_value::INT};
enum{ID = float_or_int_value::GLM_INT};
};
template <>
struct float_or_int_trait<int64>
{
enum{ID = float_or_int_value::INT};
enum{ID = float_or_int_value::GLM_INT};
};
template <>
struct float_or_int_trait<uint8>
{
enum{ID = float_or_int_value::INT};
enum{ID = float_or_int_value::GLM_INT};
};
template <>
struct float_or_int_trait<uint16>
{
enum{ID = float_or_int_value::INT};
enum{ID = float_or_int_value::GLM_INT};
};
template <>
struct float_or_int_trait<uint32>
{
enum{ID = float_or_int_value::INT};
enum{ID = float_or_int_value::GLM_INT};
};
template <>
struct float_or_int_trait<uint64>
{
enum{ID = float_or_int_value::INT};
enum{ID = float_or_int_value::GLM_INT};
};
template <>
struct float_or_int_trait<float16>
{
enum{ID = float_or_int_value::FLOAT};
enum{ID = float_or_int_value::GLM_FLOAT};
};
template <>
struct float_or_int_trait<float32>
{
enum{ID = float_or_int_value::FLOAT};
enum{ID = float_or_int_value::GLM_FLOAT};
};
template <>
struct float_or_int_trait<float64>
{
enum{ID = float_or_int_value::FLOAT};
enum{ID = float_or_int_value::GLM_FLOAT};
};
}//namespace detail

View File

@ -89,7 +89,7 @@ namespace glm
namespace detail
{
template <int PATH = float_or_int_value::ERROR>
template <int PATH = float_or_int_value::GLM_ERROR>
struct compute_log2
{
template <typename T>
@ -101,7 +101,7 @@ namespace detail
};
template <>
struct compute_log2<float_or_int_value::FLOAT>
struct compute_log2<float_or_int_value::GLM_FLOAT>
{
template <typename T>
T operator() (T const & Value) const

View File

@ -55,7 +55,7 @@ namespace detail
}
template <>
struct compute_log2<float_or_int_value::INT>
struct compute_log2<float_or_int_value::GLM_INT>
{
template <typename T>
T operator() (T const & Value) const