components/openexr/patches/006-ImfAutoArray.h-SS12.4.patch
changeset 3758 cc71a31c59be
equal deleted inserted replaced
3757:d594e0e76eb6 3758:cc71a31c59be
       
     1 # Internal patch.
       
     2 --- IlmImf/ImfAutoArray.h	2015-02-01 16:32:21.274048802 -0800
       
     3 +++ IlmImf/ImfAutoArray.h	2015-02-01 16:32:54.346820460 -0800
       
     4 @@ -46,6 +46,8 @@
       
     5  
       
     6  #include "OpenEXRConfig.h"
       
     7  
       
     8 +#include <cstring>
       
     9 +
       
    10  namespace Imf {
       
    11  
       
    12  
       
    13 @@ -58,7 +60,7 @@
       
    14        public:
       
    15  
       
    16  	AutoArray (): _data (new T [size])
       
    17 -	{ (void) memset(_data, '\0', size * sizeof(T)); }
       
    18 +	{ (void) std::memset(_data, '\0', size * sizeof(T)); }
       
    19  
       
    20  	~AutoArray () {delete [] _data;}
       
    21