ports/graphics/OpenEXR/files/patch-ImfAutoArray.h
Steve Wills e9591ed464 - Update to 1.7.1
- Give maintainership to submitter

PR:		ports/172339
Submitted by:	nemysis <nemysis@gmx.ch>
2013-01-17 03:25:07 +00:00

22 lines
539 B
C++

--- IlmImf/ImfAutoArray.h.orig 2012-07-17 19:27:26.000000000 -0400
+++ IlmImf/ImfAutoArray.h 2012-11-30 21:29:19.902497168 -0500
@@ -46,6 +46,10 @@
#include "OpenEXRConfig.h"
+#if !defined (HAVE_LARGE_STACK)
+#include <cstring>
+#endif
+
namespace Imf {
@@ -57,7 +61,7 @@
{
public:
- AutoArray (): _data (new T [size]) { memset(_data, 0, size*sizeof(T)); }
+ AutoArray (): _data (new T [size]) {::std::memset(_data, 0, size * sizeof(T));}
~AutoArray () {delete [] _data;}
operator T * () {return _data;}