Go to the documentation of this file. 21 #ifndef XAPIAN_INCLUDED_SETENV_H 22 #define XAPIAN_INCLUDED_SETENV_H 25 # error config.h must be included first in each C++ source file 32 #elif defined HAVE__PUTENV_S 33 # if !HAVE_DECL__PUTENV_S 35 extern "C" int _putenv_s(
const char*,
const char*);
40 # define setenv(NAME, VALUE, OVERWRITE) ([]() { \ 41 static_assert((OVERWRITE), "OVERWRITE must be non-zero constant"); \ 43 return _putenv_s((NAME), (VALUE)) ? -1 : 0; \ 48 #endif // XAPIAN_INCLUDED_SETENV_H