diff options
Diffstat (limited to 'patches/scsolver/scsolver-source-ui-global-cxx.diff')
-rw-r--r-- | patches/scsolver/scsolver-source-ui-global-cxx.diff | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/patches/scsolver/scsolver-source-ui-global-cxx.diff b/patches/scsolver/scsolver-source-ui-global-cxx.diff index 63431ecb3..d27d62d82 100644 --- a/patches/scsolver/scsolver-source-ui-global-cxx.diff +++ b/patches/scsolver/scsolver-source-ui-global-cxx.diff @@ -1,6 +1,6 @@ --- /dev/null +++ scsolver/source/ui/global.cxx -@@ -0,0 +1,55 @@ +@@ -0,0 +1,52 @@ +/************************************************************************* + * + * The Contents of this file are made available subject to @@ -32,18 +32,15 @@ +#include <sstream> +#include <stdio.h> + -+namespace scsolver { ++using namespace std; + ++namespace scsolver { + -+/** -+ * Outputs debug message when the DEBUG is defined. -+ * -+ * @param s message to output -+ */ +void Debug( const char* s ) +{ -+#ifdef DEBUG -+ std::cout << s << std::endl; ++#if SCSOLVER_DEBUG ++ fprintf(stdout, "%s\n", s); ++ fflush(stdout); +#endif +} + |