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 | |
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
-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 | ||||
-rwxr-xr-x | linden/indra/llplugin/llpluginsharedmemory.cpp | 2 | ||||
-rwxr-xr-x | linden/indra/llplugin/slplugin/slplugin.cpp | 2 | ||||
-rwxr-xr-x | linden/indra/llvfs/llpidlock.h | 2 | ||||
-rw-r--r-- | linden/indra/llwindow/GL/glh_extensions.h | 2 | ||||
-rw-r--r-- | linden/indra/media_plugins/webkit/windows_volume_catcher.cpp | 2 | ||||
-rw-r--r-- | linden/indra/test_apps/llplugintest/demo_plugin.cpp | 2 | ||||
-rw-r--r-- | linden/indra/win_crash_logger/StdAfx.h | 2 | ||||
-rw-r--r-- | linden/indra/win_crash_logger/llcrashloggerwindows.h | 2 | ||||
-rw-r--r-- | linden/indra/win_updater/updater.cpp | 2 |
15 files changed, 31 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 | ||
diff --git a/linden/indra/llplugin/llpluginsharedmemory.cpp b/linden/indra/llplugin/llpluginsharedmemory.cpp index 883d7b6..6becb8d 100755 --- a/linden/indra/llplugin/llpluginsharedmemory.cpp +++ b/linden/indra/llplugin/llpluginsharedmemory.cpp | |||
@@ -84,6 +84,8 @@ | |||
84 | #include <sys/mman.h> | 84 | #include <sys/mman.h> |
85 | #include <errno.h> | 85 | #include <errno.h> |
86 | #elif USE_WIN32_SHARED_MEMORY | 86 | #elif USE_WIN32_SHARED_MEMORY |
87 | # define WIN32_LEAN_AND_MEAN | ||
88 | # include <winsock2.h> | ||
87 | #include <windows.h> | 89 | #include <windows.h> |
88 | #endif // USE_APR_SHARED_MEMORY | 90 | #endif // USE_APR_SHARED_MEMORY |
89 | 91 | ||
diff --git a/linden/indra/llplugin/slplugin/slplugin.cpp b/linden/indra/llplugin/slplugin/slplugin.cpp index cca8ead..878577b 100755 --- a/linden/indra/llplugin/slplugin/slplugin.cpp +++ b/linden/indra/llplugin/slplugin/slplugin.cpp | |||
@@ -78,6 +78,8 @@ static void crash_handler(int sig) | |||
78 | #endif | 78 | #endif |
79 | 79 | ||
80 | #if LL_WINDOWS | 80 | #if LL_WINDOWS |
81 | # define WIN32_LEAN_AND_MEAN | ||
82 | # include <winsock2.h> | ||
81 | #include <windows.h> | 83 | #include <windows.h> |
82 | //////////////////////////////////////////////////////////////////////////////// | 84 | //////////////////////////////////////////////////////////////////////////////// |
83 | // Our exception handler - will probably just exit and the host application | 85 | // Our exception handler - will probably just exit and the host application |
diff --git a/linden/indra/llvfs/llpidlock.h b/linden/indra/llvfs/llpidlock.h index efcfd91..6103599 100755 --- a/linden/indra/llvfs/llpidlock.h +++ b/linden/indra/llvfs/llpidlock.h | |||
@@ -39,6 +39,8 @@ class LLFrameTimer; | |||
39 | 39 | ||
40 | #if LL_WINDOWS //For windows platform. | 40 | #if LL_WINDOWS //For windows platform. |
41 | 41 | ||
42 | # define WIN32_LEAN_AND_MEAN | ||
43 | # include <winsock2.h> | ||
42 | #include <windows.h> | 44 | #include <windows.h> |
43 | 45 | ||
44 | #else //Everyone Else | 46 | #else //Everyone Else |
diff --git a/linden/indra/llwindow/GL/glh_extensions.h b/linden/indra/llwindow/GL/glh_extensions.h index b936b5d..5b149c9 100644 --- a/linden/indra/llwindow/GL/glh_extensions.h +++ b/linden/indra/llwindow/GL/glh_extensions.h | |||
@@ -17,6 +17,8 @@ | |||
17 | #include <stdio.h> | 17 | #include <stdio.h> |
18 | 18 | ||
19 | #ifdef _WIN32 | 19 | #ifdef _WIN32 |
20 | # define WIN32_LEAN_AND_MEAN | ||
21 | # include <winsock2.h> | ||
20 | # include <windows.h> | 22 | # include <windows.h> |
21 | #endif | 23 | #endif |
22 | 24 | ||
diff --git a/linden/indra/media_plugins/webkit/windows_volume_catcher.cpp b/linden/indra/media_plugins/webkit/windows_volume_catcher.cpp index f1afea7..64f70c4 100644 --- a/linden/indra/media_plugins/webkit/windows_volume_catcher.cpp +++ b/linden/indra/media_plugins/webkit/windows_volume_catcher.cpp | |||
@@ -34,6 +34,8 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include "volume_catcher.h" | 36 | #include "volume_catcher.h" |
37 | # define WIN32_LEAN_AND_MEAN | ||
38 | # include <winsock2.h> | ||
37 | #include <windows.h> | 39 | #include <windows.h> |
38 | #include "llmemory.h" | 40 | #include "llmemory.h" |
39 | class VolumeCatcherImpl : public LLSingleton<VolumeCatcherImpl> | 41 | class VolumeCatcherImpl : public LLSingleton<VolumeCatcherImpl> |
diff --git a/linden/indra/test_apps/llplugintest/demo_plugin.cpp b/linden/indra/test_apps/llplugintest/demo_plugin.cpp index 772fa16..fd67a58 100644 --- a/linden/indra/test_apps/llplugintest/demo_plugin.cpp +++ b/linden/indra/test_apps/llplugintest/demo_plugin.cpp | |||
@@ -33,6 +33,8 @@ | |||
33 | #include "linden_common.h" | 33 | #include "linden_common.h" |
34 | 34 | ||
35 | #ifdef WIN32 | 35 | #ifdef WIN32 |
36 | # define WIN32_LEAN_AND_MEAN | ||
37 | # include <winsock2.h> | ||
36 | #include <windows.h> | 38 | #include <windows.h> |
37 | #endif | 39 | #endif |
38 | 40 | ||
diff --git a/linden/indra/win_crash_logger/StdAfx.h b/linden/indra/win_crash_logger/StdAfx.h index 021a995..79198c2 100644 --- a/linden/indra/win_crash_logger/StdAfx.h +++ b/linden/indra/win_crash_logger/StdAfx.h | |||
@@ -46,6 +46,8 @@ | |||
46 | 46 | ||
47 | 47 | ||
48 | // Windows Header Files: | 48 | // Windows Header Files: |
49 | # define WIN32_LEAN_AND_MEAN | ||
50 | # include <winsock2.h> | ||
49 | #include <windows.h> | 51 | #include <windows.h> |
50 | 52 | ||
51 | // C RunTime Header Files | 53 | // C RunTime Header Files |
diff --git a/linden/indra/win_crash_logger/llcrashloggerwindows.h b/linden/indra/win_crash_logger/llcrashloggerwindows.h index e6a9c77..f2a877e 100644 --- a/linden/indra/win_crash_logger/llcrashloggerwindows.h +++ b/linden/indra/win_crash_logger/llcrashloggerwindows.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #define LLCRASHLOGGERWINDOWS_H | 34 | #define LLCRASHLOGGERWINDOWS_H |
35 | 35 | ||
36 | #include "llcrashlogger.h" | 36 | #include "llcrashlogger.h" |
37 | # define WIN32_LEAN_AND_MEAN | ||
38 | # include <winsock2.h> | ||
37 | #include "windows.h" | 39 | #include "windows.h" |
38 | #include "llstring.h" | 40 | #include "llstring.h" |
39 | 41 | ||
diff --git a/linden/indra/win_updater/updater.cpp b/linden/indra/win_updater/updater.cpp index 5031270..c6fa3c8 100644 --- a/linden/indra/win_updater/updater.cpp +++ b/linden/indra/win_updater/updater.cpp | |||
@@ -39,6 +39,8 @@ | |||
39 | // *TODO: Switch to fopen_s, strtok_s, etc. | 39 | // *TODO: Switch to fopen_s, strtok_s, etc. |
40 | #define _CRT_SECURE_NO_DEPRECATE | 40 | #define _CRT_SECURE_NO_DEPRECATE |
41 | 41 | ||
42 | # define WIN32_LEAN_AND_MEAN | ||
43 | # include <winsock2.h> | ||
42 | #include <windows.h> | 44 | #include <windows.h> |
43 | #include <wininet.h> | 45 | #include <wininet.h> |
44 | #include <stdio.h> | 46 | #include <stdio.h> |