On Saturday, December 12, 2020 8:30:41 PM WET Kornel Benko wrote:
> This one is declared in "string.h" (so not c++?)
> 
>         Kornel

#include "cstring"

is the more C++-ish way to include it.


The first lines in gcc 10, the version I have here, corresponding file are 
quite instructive:

#pragma GCC system_header

#include <bits/c++config.h>
#include <string.h>

#ifndef _GLIBCXX_CSTRING
#define _GLIBCXX_CSTRING 1

// Get rid of those macros defined in <string.h> in lieu of real functions.
#undef memchr
...

After this point it undefines a lot of macro and then replaces it by real 
functions. As an example consider the first macro to be removed the 
corresponding code then becomes:

extern "C++"
{
namespace std _GLIBCXX_VISIBILITY(default)
{
  using ::memchr;
...

-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to