WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
128454
ImageDiff compile fails when compiled with libc++
https://bugs.webkit.org/show_bug.cgi?id=128454
Summary
ImageDiff compile fails when compiled with libc++
Rajaram Gaunker
Reported
2014-02-08 07:32:26 PST
repro steps: Compile webkit using libc++. Observation: Following compile errors. Resolution: include cstdlib in ImageDiff.cpp. WebKit/Tools/ImageDiff/gtk/ImageDiff.cpp:103:61: error: use of undeclared identifier 'malloc'; did you mean 'g_malloc'? unsigned char* diffBuffer = static_cast<unsigned char*>(malloc(width * height)); ^~~~~~ g_malloc webkit_deps/include/glib-2.0/glib/gmem.h:78:10: note: 'g_malloc' declared here gpointer g_malloc (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1); ^ WebKit/Tools/ImageDiff/gtk/ImageDiff.cpp:147:5: error: use of undeclared identifier 'free' free(diffBuffer); ^ WebKit/Tools/ImageDiff/gtk/ImageDiff.cpp:207:30: error: use of undeclared identifier 'strtol' long imageSize = strtol(tokens[1], 0, 10); ^ 3 errors generated.
Attachments
Patch
(993 bytes, patch)
2014-02-08 07:38 PST
,
Rajaram Gaunker
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Rajaram Gaunker
Comment 1
2014-02-08 07:38:09 PST
Created
attachment 223567
[details]
Patch
WebKit Commit Bot
Comment 2
2014-02-08 08:09:57 PST
Comment on
attachment 223567
[details]
Patch Clearing flags on attachment: 223567 Committed
r163711
: <
http://trac.webkit.org/changeset/163711
>
WebKit Commit Bot
Comment 3
2014-02-08 08:10:00 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug