mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
f6e7eddb0b
added new patch to include cstring in case of HAVE_LARGE_STACK
24 lines
733 B
Diff
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;}
|