summaryrefslogtreecommitdiff
path: root/m4/mbrtowc.m4
diff options
context:
space:
mode:
authorSam Steingold <sds@gnu.org>2009-06-26 02:58:34 +0200
committerBruno Haible <bruno@clisp.org>2009-06-26 02:58:34 +0200
commit5696a5eaf981123faccc39145a966fa13c335b18 (patch)
treefba76df31c2aa509a2a8a8f1b8d7d16b61ee0928 /m4/mbrtowc.m4
parent0d626a9b7c58a25b292252357f5a91110024cfaa (diff)
downloadgnulib-5696a5eaf981123faccc39145a966fa13c335b18.tar.gz
Make the tests work with a C++ compiler.
Diffstat (limited to 'm4/mbrtowc.m4')
-rw-r--r--m4/mbrtowc.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4
index 11d7d23e7e..2fddcc8a10 100644
--- a/m4/mbrtowc.m4
+++ b/m4/mbrtowc.m4
@@ -1,4 +1,4 @@
-# mbrtowc.m4 serial 15
+# mbrtowc.m4 serial 16
dnl Copyright (C) 2001-2002, 2004-2005, 2008, 2009 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -156,6 +156,7 @@ changequote([,])dnl
if test $LOCALE_ZH_CN != none; then
AC_TRY_RUN([
#include <locale.h>
+#include <stdlib.h>
#include <string.h>
#include <wchar.h>
int main ()