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