From 45c270d7a263104224447551c37a0856675d2af0 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Mon, 19 Aug 2019 13:33:45 +0200 Subject: [PATCH] add support for Unix --- Main.cpp | 4 ++++ Main.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Main.cpp b/Main.cpp index ce65a26..bc0b398 100644 --- a/Main.cpp +++ b/Main.cpp @@ -19,7 +19,11 @@ int main(void) { if (imgOriginalScene.empty()) { // if unable to open image std::cout << "error: image not read from file\n\n"; // show error message on command line +#ifdef _WINDOWS _getch(); // may have to modify this line if not using Windows +#else + getchar(); +#endif return(0); // and exit program } diff --git a/Main.h b/Main.h index 790727c..4c9e1be 100644 --- a/Main.h +++ b/Main.h @@ -12,7 +12,11 @@ #include "DetectChars.h" #include +#ifdef _WINDOWS #include // may have to modify this line if not using Windows +#else +#include +#endif //#define SHOW_STEPS // un-comment or comment this line to show steps or not