From 2ee5e989b360714244c2fba6c0ad88d71c0075de Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Fri, 9 Dec 2022 14:42:38 +0800 Subject: [PATCH] flush stdout for Log --- ios/include/Log.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/include/Log.hpp b/ios/include/Log.hpp index 0f30594d..22e521b2 100644 --- a/ios/include/Log.hpp +++ b/ios/include/Log.hpp @@ -10,6 +10,7 @@ #define LOGTAG "PolyvoxFilament" #else #include +#include #endif static void Log(const char *fmt, ...) { @@ -23,7 +24,7 @@ static void Log(const char *fmt, ...) { NSLogv(format, args); #else vprintf(fmt, args); - printf("\n"); + std::cout << std::endl; #endif va_end(args);