desktop/freeimage/ImfAutoArray_cstring.patch
AlmAck f6e7eddb0b freeimage update to version 3.15.4
added new patch to include cstring in case of HAVE_LARGE_STACK
2013-02-20 21:44:41 +01:00

24 lines
733 B
Diff

diff -Naur FreeImage.orig//Source/OpenEXR/IlmImf/ImfAutoArray.h FreeImage.new//Source/OpenEXR/IlmImf/ImfAutoArray.h
--- FreeImage.orig//Source/OpenEXR/IlmImf/ImfAutoArray.h 2012-07-18 07:27:26.000000000 +0000
+++ FreeImage.new//Source/OpenEXR/IlmImf/ImfAutoArray.h 2013-02-18 22:42:34.990326670 +0000
@@ -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;}