Compile fixes

This commit is contained in:
Siana Gearz
2012-07-31 19:42:15 +02:00
parent c9715c5b0b
commit 783e86990c
2 changed files with 8 additions and 4 deletions

View File

@@ -81,12 +81,12 @@ struct libcwd_do_type {
void on() const { }
};
extern CWD_API libcwd_do_type const libcw_do;
struct CWD_API Indent {
struct Indent {
int M_indent;
static AI_THREADLOCAL int S_indentation;
enum print_nt { print };
Indent(int indent) : M_indent(indent) { S_indentation += M_indent; }
~Indent() { S_indentation -= M_indent; }
CWD_API Indent(int indent) : M_indent(indent) { S_indentation += M_indent; }
CWD_API ~Indent() { S_indentation -= M_indent; }
friend CWD_API std::ostream& operator<<(std::ostream& os, print_nt);
};

View File

@@ -39,7 +39,11 @@
#endif
#include <deque>
#define DEBUG_WINDOWS_CODE_ON_LINUX 1
// On linux, add -DDEBUG_WINDOWS_CODE_ON_LINUX to test the windows code used in this file.
#if !defined(DEBUG_WINDOWS_CODE_ON_LINUX) || !defined(LL_LINUX) || defined(LL_RELEASE)
#undef DEBUG_WINDOWS_CODE_ON_LINUX
#define DEBUG_WINDOWS_CODE_ON_LINUX 0
#endif
#if DEBUG_WINDOWS_CODE_ON_LINUX