From 1ef877671fc578611c277d64686675b93739baf7 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Sat, 28 Dec 2019 18:58:02 -0800 Subject: [PATCH] C++11 requires a space between literal and string macro (#15401) --- src/webpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webpage.cpp b/src/webpage.cpp index 0d2b13fd1..b5ff67915 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -76,8 +76,8 @@ #define BLANK_HTML "" #define CALLBACKS_OBJECT_NAME "_phantom" #define INPAGE_CALL_NAME "window.callPhantom" -#define CALLBACKS_OBJECT_INJECTION INPAGE_CALL_NAME" = function() { return window."CALLBACKS_OBJECT_NAME".call.call(_phantom, Array.prototype.slice.call(arguments, 0)); };" -#define CALLBACKS_OBJECT_PRESENT "typeof(window."CALLBACKS_OBJECT_NAME") !== \"undefined\";" +#define CALLBACKS_OBJECT_INJECTION INPAGE_CALL_NAME " = function() { return window." CALLBACKS_OBJECT_NAME ".call.call(_phantom, Array.prototype.slice.call(arguments, 0)); };" +#define CALLBACKS_OBJECT_PRESENT "typeof(window." CALLBACKS_OBJECT_NAME ") !== \"undefined\";" #define STDOUT_FILENAME "/dev/stdout" #define STDERR_FILENAME "/dev/stderr"