From 856c7144e561e795d7fbf2d6e68b2c1d2e907447 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Sun, 8 Aug 2010 17:59:59 +0000 Subject: [PATCH] added bzero for embedded systems --- src/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.c b/src/utils.c index 4595af5e2..ad97ab4b3 100644 --- a/src/utils.c +++ b/src/utils.c @@ -177,6 +177,7 @@ uint8_t crc8_calc(uint8_t *data, uint16_t len) return 0xFF - crc8(data, len); } +#ifdef EMBEDDED /*-----------------------------------------------------------------------------------*/ // ad-hoc implemenation for embedded targets void bzero(void *s, uint32_t n){ @@ -185,3 +186,4 @@ void bzero(void *s, uint32_t n){ *data++ = 0; } } +#endif