mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Fix a few more compile issues with the new wide character support
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user