mirror of
https://github.com/debauchee/barrier.git
synced 2026-12-01 08:15:25 +08:00
win32 changes. changed names of binaries. added support for
running as (and installing/installing) a service. added support for multiple desktops (NT only, 95 doesn't support multiple desktops).
This commit is contained in:
@@ -201,10 +201,8 @@ void CLog::output(int priority, char* msg)
|
||||
|
||||
// print it
|
||||
CHoldLock lock(s_lock);
|
||||
if (s_outputter) {
|
||||
s_outputter(priority, msg + g_maxPriorityLength - n);
|
||||
}
|
||||
else {
|
||||
if (s_outputter == NULL ||
|
||||
!s_outputter(priority, msg + g_maxPriorityLength - n)) {
|
||||
#if defined(CONFIG_PLATFORM_WIN32)
|
||||
openConsole();
|
||||
#endif
|
||||
|
||||
@@ -17,7 +17,11 @@ public:
|
||||
kDEBUG2
|
||||
};
|
||||
|
||||
typedef void (*Outputter)(int priority, const char*);
|
||||
// type of outputter function. return false if CLog should use
|
||||
// the default outputter, true otherwise.
|
||||
typedef bool (*Outputter)(int priority, const char*);
|
||||
|
||||
// type of lock/unlock function
|
||||
typedef void (*Lock)(bool lock);
|
||||
|
||||
//
|
||||
|
||||
@@ -23,8 +23,8 @@ CFG=base - Win32 Debug
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName "millpond"
|
||||
# PROP Scc_LocalPath "."
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
#pragma warning(disable: 4786) // identifier truncated in debug info
|
||||
#pragma warning(disable: 4514) // unreferenced inline function removed
|
||||
|
||||
// this one's a little too aggressive
|
||||
#pragma warning(disable: 4127) // conditional expression is constant
|
||||
|
||||
#endif // (_MSC_VER >= 1200)
|
||||
|
||||
#else
|
||||
|
||||
@@ -8,4 +8,5 @@
|
||||
#pragma warning(disable: 4284)
|
||||
#pragma warning(disable: 4146) // unary minus on unsigned value
|
||||
#pragma warning(disable: 4127) // conditional expression is constant
|
||||
#pragma warning(disable: 4701) // variable possibly used uninitialized
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user