Fix a few more compile issues with the new wide character support

This commit is contained in:
Gregory Nutt
2016-10-19 08:18:46 -06:00
parent b852bb3403
commit 54fd0f0a04
7 changed files with 65 additions and 73 deletions
+1
View File
@@ -34,6 +34,7 @@
#include <nuttx/config.h>
#include <stddef.h>
#include <string.h>
#include <wchar.h>
+2 -1
View File
@@ -33,6 +33,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <string.h>
#include <wchar.h>
@@ -52,7 +53,7 @@
*
****************************************************************************/
FAR wchar_t *wmemchr(FAR wchar_t *s, wchar_t c, size_t n)
FAR wchar_t *wmemchr(FAR const wchar_t *s, wchar_t c, size_t n)
{
size_t i;
+2 -1
View File
@@ -33,6 +33,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <string.h>
#include <wchar.h>
@@ -52,7 +53,7 @@
*
****************************************************************************/
FAR wchar_t *wmemcpy(FAR wchar_t *d, FAR wchar_t *s, size_t n)
FAR wchar_t *wmemcpy(FAR wchar_t *d, FAR const wchar_t *s, size_t n)
{
return (FAR wchar_t *) memcpy(d, s, n * sizeof(wchar_t));
}