From a841a0ef3d94c7362f1fba7ad75d6d0bf52c736b Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Mon, 29 Mar 2010 17:09:51 -0400 Subject: add portable bzero interface Change-Id: I513c7bb5278202447ae8a270b4f30d699fd4dda6 http://2535696 --- WebCore/platform/graphics/android/LayerAndroid.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'WebCore/platform') 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 +#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; -- cgit v1.1