Mercurial > hg > orthanc
diff OrthancServer/FromDcmtkBridge.cpp @ 71:aa65ced5f0f0
fix for visual studio
author | jodogne |
---|---|
date | Mon, 17 Sep 2012 12:34:55 +0200 |
parents | a70bb32802ae |
children | cb5ad233c336 |
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.cpp Sun Sep 16 10:01:36 2012 +0200 +++ b/OrthancServer/FromDcmtkBridge.cpp Mon Sep 17 12:34:55 2012 +0200 @@ -17,6 +17,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. **/ +#ifndef NOMINMAX +#define NOMINMAX +#endif #include "FromDcmtkBridge.h" @@ -27,6 +30,8 @@ #include "../Core/DicomFormat/DicomString.h" #include "../Core/DicomFormat/DicomNullValue.h" +#include <limits> + #include <boost/locale.hpp> #include <boost/lexical_cast.hpp> @@ -422,7 +427,7 @@ for (unsigned int x = 0; x < accessor.GetWidth(); x++, pixel++) { int32_t v = accessor.GetValue(x, y); - if (v < std::numeric_limits<T>::min()) + if (v < typename std::numeric_limits<T>::min()) *pixel = std::numeric_limits<T>::min(); else if (v > std::numeric_limits<T>::max()) *pixel = std::numeric_limits<T>::max();