Use __EMSCRIPTEN__ instead of __USE_POSIX2

This commit is contained in:
kinsei0916 2021-09-20 15:49:14 +09:00 committed by Rodrigo Queiro
parent de81bb0aac
commit 3b6b05d70b

View File

@ -2148,7 +2148,7 @@ static string ShellEscape(const string& src) {
// log_mutex.
static bool SendEmailInternal(const char*dest, const char *subject,
const char*body, bool use_logging) {
#ifdef __USE_POSIX2
#ifndef __EMSCRIPTEN__
if (dest && *dest) {
if ( use_logging ) {
VLOG(1) << "Trying to send TITLE:" << subject