package/cryptopp: needs wchar

Fix the following build failure raised since commit
bf4cf9de83:

In file included from seckey.h:11,
                 from 3way.h:10,
                 from 3way.cpp:5:
misc.h:1528:6: error: 'wstring' in namespace 'std' does not name a type
 1528 | std::wstring StringWiden(const char *str, bool throwOnError = true);
      |      ^~~~~~~
In file included from seckey.h:11,
                 from 3way.h:10,
                 from 3way.cpp:5:
misc.h:14:1: note: 'std::wstring' is defined in header '<string>'; did you forget to '#include <string>'?
   13 | #include "smartptr.h"
  +++ |+#include <string>
   14 | #include "stdcpp.h"

Fixes:
 - http://autobuild.buildroot.org/results/174fe03da7a40dd152703de93af6a213d9cac698

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2022-01-10 18:35:42 +01:00 committed by Thomas Petazzoni
parent 5da8218184
commit 7425450ba2

View File

@ -1,8 +1,9 @@
config BR2_PACKAGE_CRYPTOPP
bool "cryptopp"
depends on !BR2_STATIC_LIBS
depends on BR2_USE_WCHAR
help
A free C++ class library of cryptographic schemes
comment "cryptopp needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
comment "cryptopp needs a toolchain w/ dynamic library, wchar"
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR