]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/fpos/mbstate_t/1.cc
11.cc: Include <cstring>.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / fpos / mbstate_t / 1.cc
index cb07381ea55f69ae44c4098935d60b875c44f149..6240a38153788ec945cc82fd67811e7e5ffb75af 100644 (file)
@@ -1,6 +1,7 @@
 // 1999-09-20 bkoz
 
-// Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+// Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -31,6 +32,7 @@
 
 #include <cwchar> // for mbstate_t
 #include <ios>
+#include <cstring>
 #include <testsuite_hooks.h>
 
 void test01()
@@ -55,7 +57,7 @@ void test01()
   // place.
   pos01.state(state02);
   state01 = pos01.state();
-  test = memcmp(&state01, &state02, sizeof(state_type)) == 0;
+  test = std::memcmp(&state01, &state02, sizeof(state_type)) == 0;
   VERIFY( test );
 }