summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/wcrtomb.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/wcrtomb.c')
-rw-r--r--newlib/libc/stdlib/wcrtomb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/wcrtomb.c b/newlib/libc/stdlib/wcrtomb.c
index fbd71b1e2..06e487471 100644
--- a/newlib/libc/stdlib/wcrtomb.c
+++ b/newlib/libc/stdlib/wcrtomb.c
@@ -1,4 +1,5 @@
#include <reent.h>
+#include <newlib.h>
#include <wchar.h>
#include <stdlib.h>
#include <stdio.h>
@@ -14,7 +15,7 @@ _DEFUN (_wcrtomb_r, (ptr, s, wc, ps),
int retval = 0;
char buf[10];
-#ifdef MB_CAPABLE
+#ifdef _MB_CAPABLE
if (ps == NULL)
{
_REENT_CHECK_MISC(ptr);