diff options
author | McCabe Maxsted | 2010-11-23 19:41:47 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-11-23 19:41:47 -0700 |
commit | 0d654102fcb5b1aae70e7c3f565ab208455f8f36 (patch) | |
tree | 1f31ebe14171eac8a5c87d324b500d734edde6d0 /linden/indra/llcommon | |
parent | Merge remote branch 'aleric/weekly' into weekly (diff) | |
download | meta-impy-0d654102fcb5b1aae70e7c3f565ab208455f8f36.zip meta-impy-0d654102fcb5b1aae70e7c3f565ab208455f8f36.tar.gz meta-impy-0d654102fcb5b1aae70e7c3f565ab208455f8f36.tar.bz2 meta-impy-0d654102fcb5b1aae70e7c3f565ab208455f8f36.tar.xz |
Fixed Windows compile error introduced in fe9a3d2b. Also made sure winsock2.h is always included before windows.h throughout the source to prevent collisions
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/aiaprpool.h | 4 | ||||
-rw-r--r-- | linden/indra/llcommon/llerror.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llcommon/llfile.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llcommon/llfindlocale.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llcommon/llmemory.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llcommon/llprocesslauncher.h | 2 |
6 files changed, 13 insertions, 1 deletions
diff --git a/linden/indra/llcommon/aiaprpool.h b/linden/indra/llcommon/aiaprpool.h index 72e9ddb..ac523a9 100644 --- a/linden/indra/llcommon/aiaprpool.h +++ b/linden/indra/llcommon/aiaprpool.h | |||
@@ -38,7 +38,9 @@ | |||
38 | #define AIAPRPOOL_H | 38 | #define AIAPRPOOL_H |
39 | 39 | ||
40 | #ifdef LL_WINDOWS | 40 | #ifdef LL_WINDOWS |
41 | #include <ws2tcpip.h> // Needed before including apr_portable.h | 41 | //#include <ws2tcpip.h> |
42 | # define WIN32_LEAN_AND_MEAN | ||
43 | # include <winsock2.h> // Needed before including apr_portable.h | ||
42 | #endif | 44 | #endif |
43 | 45 | ||
44 | #include "apr_portable.h" | 46 | #include "apr_portable.h" |
diff --git a/linden/indra/llcommon/llerror.cpp b/linden/indra/llcommon/llerror.cpp index b9be370..a9587c6 100644 --- a/linden/indra/llcommon/llerror.cpp +++ b/linden/indra/llcommon/llerror.cpp | |||
@@ -46,6 +46,8 @@ | |||
46 | # include <unistd.h> | 46 | # include <unistd.h> |
47 | #endif // !LL_WINDOWS | 47 | #endif // !LL_WINDOWS |
48 | #if LL_WINDOWS | 48 | #if LL_WINDOWS |
49 | # define WIN32_LEAN_AND_MEAN | ||
50 | # include <winsock2.h> | ||
49 | # include <windows.h> | 51 | # include <windows.h> |
50 | #endif // LL_WINDOWS | 52 | #endif // LL_WINDOWS |
51 | #include <vector> | 53 | #include <vector> |
diff --git a/linden/indra/llcommon/llfile.cpp b/linden/indra/llcommon/llfile.cpp index 2a76f7f..6b68630 100644 --- a/linden/indra/llcommon/llfile.cpp +++ b/linden/indra/llcommon/llfile.cpp | |||
@@ -34,6 +34,8 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if LL_WINDOWS | 36 | #if LL_WINDOWS |
37 | # define WIN32_LEAN_AND_MEAN | ||
38 | # include <winsock2.h> | ||
37 | #include <windows.h> | 39 | #include <windows.h> |
38 | #endif | 40 | #endif |
39 | 41 | ||
diff --git a/linden/indra/llcommon/llfindlocale.cpp b/linden/indra/llcommon/llfindlocale.cpp index 505f5c5..71675af 100644 --- a/linden/indra/llcommon/llfindlocale.cpp +++ b/linden/indra/llcommon/llfindlocale.cpp | |||
@@ -39,6 +39,8 @@ | |||
39 | #include <ctype.h> | 39 | #include <ctype.h> |
40 | 40 | ||
41 | #ifdef WIN32 | 41 | #ifdef WIN32 |
42 | # define WIN32_LEAN_AND_MEAN | ||
43 | # include <winsock2.h> | ||
42 | #include <windows.h> | 44 | #include <windows.h> |
43 | #include <winnt.h> | 45 | #include <winnt.h> |
44 | #endif | 46 | #endif |
diff --git a/linden/indra/llcommon/llmemory.cpp b/linden/indra/llcommon/llmemory.cpp index 74004b0..2b01442 100644 --- a/linden/indra/llcommon/llmemory.cpp +++ b/linden/indra/llcommon/llmemory.cpp | |||
@@ -33,6 +33,8 @@ | |||
33 | #include "linden_common.h" | 33 | #include "linden_common.h" |
34 | 34 | ||
35 | #if defined(LL_WINDOWS) | 35 | #if defined(LL_WINDOWS) |
36 | # define WIN32_LEAN_AND_MEAN | ||
37 | # include <winsock2.h> | ||
36 | # include <windows.h> | 38 | # include <windows.h> |
37 | # include <psapi.h> | 39 | # include <psapi.h> |
38 | #elif defined(LL_DARWIN) | 40 | #elif defined(LL_DARWIN) |
diff --git a/linden/indra/llcommon/llprocesslauncher.h b/linden/indra/llcommon/llprocesslauncher.h index b72be27..9833a13 100644 --- a/linden/indra/llcommon/llprocesslauncher.h +++ b/linden/indra/llcommon/llprocesslauncher.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define LL_LLPROCESSLAUNCHER_H | 34 | #define LL_LLPROCESSLAUNCHER_H |
35 | 35 | ||
36 | #if LL_WINDOWS | 36 | #if LL_WINDOWS |
37 | # define WIN32_LEAN_AND_MEAN | ||
38 | # include <winsock2.h> | ||
37 | #include <windows.h> | 39 | #include <windows.h> |
38 | #endif | 40 | #endif |
39 | 41 | ||