Issue # 80 - Fix up gfx/2d/DataSurfaceHelpers

De-unified build requires <string.h> instead of <cstring> to
prevent stdlib confusion.
This commit is contained in:
Moonchild 2020-05-14 18:34:06 +00:00 • committed by Roy Tam
commit 6678c91396
2 changed files with 3 additions and 7 deletions

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <cstring> #include <string.h>
#include "2D.h" #include "2D.h"
#include "DataSurfaceHelpers.h" #include "DataSurfaceHelpers.h"

View file

@ -141,15 +141,11 @@ elif CONFIG['CPU_ARCH'].startswith('mips'):
'convolverLS3.cpp', 'convolverLS3.cpp',
] ]
# Won't build non-unified with a build error in iosfwd `strlen` (??)
UNIFIED_SOURCES += [
'DataSourceSurface.cpp',
'DataSurfaceHelpers.cpp',
]
SOURCES += [ SOURCES += [
'BezierUtils.cpp', 'BezierUtils.cpp',
'Blur.cpp', 'Blur.cpp',
'DataSourceSurface.cpp',
'DataSurfaceHelpers.cpp',
'DrawEventRecorder.cpp', 'DrawEventRecorder.cpp',
'DrawingJob.cpp', 'DrawingJob.cpp',
'DrawTarget.cpp', 'DrawTarget.cpp',