Preliminary support for MSYS/MinGW builds. Doesn't yet build

CSynergyHook as a DLL and does not compile or link in the
resources for the binaries.
This commit is contained in:
crs
2004-04-11 19:15:09 +00:00
parent 530be3ff9d
commit bf2879724f
20 changed files with 386 additions and 373 deletions

View File

@@ -12,7 +12,7 @@
* GNU General Public License for more details.
*/
#if !defined(_MT)
#if defined(_MSC_VER) && !defined(_MT)
# error multithreading compile option is required
#endif
@@ -415,12 +415,12 @@ CArchMultithreadWindows::setPriorityOfThread(CArchThread thread, int n)
assert(thread != NULL);
size_t index;
if (n > 0 && s_pBase < n) {
if (n > 0 && s_pBase < (size_t)n) {
// lowest priority
index = 0;
}
else {
index = s_pBase - n;
index = (size_t)((int)s_pBase - n);
if (index > s_pMax) {
// highest priority
index = s_pMax;