X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fdebug.h;h=a4887db7ae72573f07c588f25d4ae13536e904fa;hb=faa87bf9f30b943397429a04254d96963bbf38bc;hp=4d5038de7d25acb7787dda4c874dcd4dbd5d5e37;hpb=704328d3488c75733ddeb9ad5439b1907e323e39;p=lyx.git diff --git a/src/support/debug.h b/src/support/debug.h index 4d5038de7d..a4887db7ae 100644 --- a/src/support/debug.h +++ b/src/support/debug.h @@ -17,6 +17,10 @@ #include "support/strfwd.h" +// Forward definitions do not work with libc++ +// but ios_base has already been defined in strfwd +// if compiling with it +#ifndef _LIBCPP_VERSION namespace std { class ios_base; @@ -25,6 +29,7 @@ template class basic_streambuf; typedef basic_streambuf > streambuf; } +#endif namespace lyx {