Move memset6() declaration to string-extra.h, kills a warning compiling for android since it ships a memory.h.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27789 a1c6a512-1295-4272-9138-f99709370657
diff --git a/apps/codecs/libmusepack/mpc_types.h b/apps/codecs/libmusepack/mpc_types.h
index 61ee5ea..aa25f3d 100644
--- a/apps/codecs/libmusepack/mpc_types.h
+++ b/apps/codecs/libmusepack/mpc_types.h
@@ -38,7 +38,7 @@
#endif
#include <stdlib.h>
-#include <memory.h>
+#include <inttypes.h>
#ifdef __cplusplus
extern "C" {
diff --git a/apps/codecs/libspeex/config-speex.h b/apps/codecs/libspeex/config-speex.h
index f3b397f..7e0672c 100644
--- a/apps/codecs/libspeex/config-speex.h
+++ b/apps/codecs/libspeex/config-speex.h
@@ -74,7 +74,7 @@
/* #undef HAVE_LIBWINMM */
/* Define to 1 if you have the <memory.h> header file. */
-#define HAVE_MEMORY_H 1
+/* #define HAVE_MEMORY_H 1 */
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
diff --git a/firmware/common/memset16.c b/firmware/common/memset16.c
index c90e2d7..7e31df0 100644
--- a/firmware/common/memset16.c
+++ b/firmware/common/memset16.c
@@ -19,8 +19,7 @@
*
****************************************************************************/
-#include <string.h>
-#include "memory.h"
+#include "string-extra.h" /* memset16() */
#define LBLOCKSIZE (sizeof(long)/2)
#define UNALIGNED(X) ((long)X & (sizeof(long) - 1))
diff --git a/firmware/drivers/lcd-16bit-vert.c b/firmware/drivers/lcd-16bit-vert.c
index 2b4faef..a2f47d3 100644
--- a/firmware/drivers/lcd-16bit-vert.c
+++ b/firmware/drivers/lcd-16bit-vert.c
@@ -27,9 +27,8 @@
#include "lcd.h"
#include "kernel.h"
#include "thread.h"
-#include <string.h>
#include <stdlib.h>
-#include "memory.h"
+#include "string-extra.h" /* mem*() */
#include "file.h"
#include "debug.h"
#include "system.h"
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c
index f8b4272..be4f21f 100644
--- a/firmware/drivers/lcd-16bit.c
+++ b/firmware/drivers/lcd-16bit.c
@@ -26,9 +26,8 @@
#include "lcd.h"
#include "kernel.h"
#include "thread.h"
-#include <string.h>
#include <stdlib.h>
-#include "memory.h"
+#include "string-extra.h" /* mem*() */
#include "file.h"
#include "debug.h"
#include "system.h"
diff --git a/firmware/drivers/lcd-2bit-vi.c b/firmware/drivers/lcd-2bit-vi.c
index 5dd94a1..697d1a7 100644
--- a/firmware/drivers/lcd-2bit-vi.c
+++ b/firmware/drivers/lcd-2bit-vi.c
@@ -26,9 +26,8 @@
#include "lcd.h"
#include "kernel.h"
#include "thread.h"
-#include <string.h>
#include <stdlib.h>
-#include "memory.h"
+#include "string-extra.h" /* mem*() */
#include "file.h"
#include "debug.h"
#include "system.h"
diff --git a/firmware/include/memory.h b/firmware/include/memset16.h
similarity index 85%
rename from firmware/include/memory.h
rename to firmware/include/memset16.h
index 105d028..1569644 100644
--- a/firmware/include/memory.h
+++ b/firmware/include/memset16.h
@@ -19,11 +19,10 @@
*
****************************************************************************/
-#ifndef _MEMORY_H_
-#define _MEMORY_H_
+#ifndef __MEMSET16_H__
+#define __MEMSET16_H__
-#include "inttypes.h"
+#include <string.h> /* size_t */
+extern void memset16(void *dst, int val, size_t len);
-void memset16(void *dst, int val, size_t len);
-
-#endif /* _MEMORY_H_ */
+#endif /* __MEMSET16_H__ */
diff --git a/firmware/include/string-extra.h b/firmware/include/string-extra.h
index 16dd2fd..bae250d 100644
--- a/firmware/include/string-extra.h
+++ b/firmware/include/string-extra.h
@@ -26,3 +26,4 @@
#include "strcasecmp.h"
#include "strcasestr.h"
#include "strtok_r.h"
+#include "memset16.h"
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/lcd-creativezvm.c b/firmware/target/arm/tms320dm320/creative-zvm/lcd-creativezvm.c
index b11c9f0..c929203 100644
--- a/firmware/target/arm/tms320dm320/creative-zvm/lcd-creativezvm.c
+++ b/firmware/target/arm/tms320dm320/creative-zvm/lcd-creativezvm.c
@@ -25,7 +25,7 @@
#include "kernel.h"
#include "lcd.h"
#include "system.h"
-#include "memory.h"
+#include "string-extra.h" /* memset16() */
#include "cpu.h"
#include "spi.h"
#include "spi-target.h"
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c
index 3d65bcc..838efa4 100644
--- a/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c
+++ b/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c
Binary files differ
diff --git a/firmware/target/hosted/sdl/kernel-sdl.c b/firmware/target/hosted/sdl/kernel-sdl.c
index d796921..c4d4ee2 100644
--- a/firmware/target/hosted/sdl/kernel-sdl.c
+++ b/firmware/target/hosted/sdl/kernel-sdl.c
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <SDL.h>
#include <SDL_thread.h>
-#include "memory.h"
+#include <inttypes.h>
#include "system-sdl.h"
#include "thread-sdl.h"
#include "kernel.h"
diff --git a/flash/extract/extract.c b/flash/extract/extract.c
index e6ea2ef..b1f8f4d 100644
--- a/flash/extract/extract.c
+++ b/flash/extract/extract.c
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include <memory.h>
+#include <inttypes.h>
#define UINT8 unsigned char
#define UINT16 unsigned short
@@ -144,4 +144,4 @@
fclose(pOutFile);
return 0;
-}
\ No newline at end of file
+}
diff --git a/flash/make_firmware/make_firmware.c b/flash/make_firmware/make_firmware.c
index 9b5b55f..a79f2b9 100644
--- a/flash/make_firmware/make_firmware.c
+++ b/flash/make_firmware/make_firmware.c
@@ -25,7 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include <memory.h>
+#include <inttypes.h>
#include <string.h>
#define UINT8 unsigned char