From b7f5d7e4153bc9c6650ac8d398379737eedefe88 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 20 Sep 2012 01:37:40 +0200 Subject: [PATCH] Windows build fixes --- indra/llmessage/aicurl.cpp | 3 +++ indra/llwindow/llwindowwin32.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/llmessage/aicurl.cpp b/indra/llmessage/aicurl.cpp index a5010b7e6..8237fcaa4 100644 --- a/indra/llmessage/aicurl.cpp +++ b/indra/llmessage/aicurl.cpp @@ -39,6 +39,9 @@ #include "linden_common.h" +#if LL_WINDOWS +#include //remove classic winsock from windows.h +#endif #define OPENSSL_THREAD_DEFINES #include // OPENSSL_THREADS #include diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 70c6f771f..53ba137d0 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -1416,7 +1416,7 @@ BOOL LLWindowWin32::switchContext(BOOL fullscreen, const LLCoordScreen &size, BO { found_format = TRUE; } - else if(cur_format >= num_formats-1) + else if(cur_format >= (S32)num_formats-1) { cur_format = 0; found_format = TRUE;