diff options
author | Cary Clark <cary@android.com> | 2010-04-07 07:00:34 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-04-07 07:00:34 -0700 |
commit | 920cf0c10e5568144cae2c54cf9b0c5bdbcad095 (patch) | |
tree | 5dde9024c4d5cba0df82b9c797dd96e00d35be22 /WebCore | |
parent | ac92352d2974ec89a50a87947f4a4a7eb65e915c (diff) | |
parent | a841a0ef3d94c7362f1fba7ad75d6d0bf52c736b (diff) | |
download | external_webkit-920cf0c10e5568144cae2c54cf9b0c5bdbcad095.zip external_webkit-920cf0c10e5568144cae2c54cf9b0c5bdbcad095.tar.gz external_webkit-920cf0c10e5568144cae2c54cf9b0c5bdbcad095.tar.bz2 |
Merge "add portable bzero interface"
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/platform/graphics/android/LayerAndroid.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/LayerAndroid.h b/WebCore/platform/graphics/android/LayerAndroid.h index e9416c1..ef6af3b 100644 --- a/WebCore/platform/graphics/android/LayerAndroid.h +++ b/WebCore/platform/graphics/android/LayerAndroid.h @@ -25,6 +25,13 @@ #include "StringHash.h" #include <wtf/HashMap.h> +#ifndef BZERO_DEFINED +#define BZERO_DEFINED +// http://www.opengroup.org/onlinepubs/000095399/functions/bzero.html +// For maximum portability, it is recommended to replace the function call to bzero() as follows: +#define bzero(b,len) (memset((b), '\0', (len)), (void) 0) +#endif + class SkCanvas; class SkMatrix; class SkPicture; |