From 242163fadada9f3c2dbf29adf091a020f3f34c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Fr=C3=B6der?= Date: Thu, 25 Feb 2021 02:53:32 +0100 Subject: [PATCH] fix windows compilation (#1) --- futurerestore/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/futurerestore/main.cpp b/futurerestore/main.cpp index d634ec4b..669b4265 100644 --- a/futurerestore/main.cpp +++ b/futurerestore/main.cpp @@ -89,16 +89,15 @@ void cmd_help(){ printf(" \t\tOnly use this for device without a baseband (eg. iPod touch or some Wi-Fi only iPads)\n\n"); } +using namespace std; +using namespace tihmstar; +int main_r(int argc, const char * argv[]) { #ifdef WIN32 DWORD termFlags; HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE); if (GetConsoleMode(handle, &termFlags)) SetConsoleMode(handle, termFlags | ENABLE_VIRTUAL_TERMINAL_PROCESSING); #endif - -using namespace std; -using namespace tihmstar; -int main_r(int argc, const char * argv[]) { int err=0; printf("Version: " VERSION_COMMIT_SHA " - " VERSION_COMMIT_COUNT "\n"); printf("%s\n",tihmstar::img4tool::version());