Compile fixes
This commit is contained in:
@@ -81,12 +81,12 @@ struct libcwd_do_type {
|
|||||||
void on() const { }
|
void on() const { }
|
||||||
};
|
};
|
||||||
extern CWD_API libcwd_do_type const libcw_do;
|
extern CWD_API libcwd_do_type const libcw_do;
|
||||||
struct CWD_API Indent {
|
struct Indent {
|
||||||
int M_indent;
|
int M_indent;
|
||||||
static AI_THREADLOCAL int S_indentation;
|
static AI_THREADLOCAL int S_indentation;
|
||||||
enum print_nt { print };
|
enum print_nt { print };
|
||||||
Indent(int indent) : M_indent(indent) { S_indentation += M_indent; }
|
CWD_API Indent(int indent) : M_indent(indent) { S_indentation += 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);
|
friend CWD_API std::ostream& operator<<(std::ostream& os, print_nt);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,11 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <deque>
|
#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
|
#if DEBUG_WINDOWS_CODE_ON_LINUX
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user