mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 14:55:37 +00:00
fix: add missing <cstdio> include and flush stdout explicitly
Address Copilot review: include <cstdio> for std::setvbuf portability, use std::endl instead of "\n" to guarantee flush on piped stdout.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <windows.h>
|
||||
#include <cstdio>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
@@ -48,7 +49,7 @@ int main() {
|
||||
|
||||
if (type != lastType) {
|
||||
lastType = type;
|
||||
std::cout << "STATE:" << type << "\n";
|
||||
std::cout << "STATE:" << type << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user