diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/linden_common.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/linden/indra/llcommon/linden_common.h b/linden/indra/llcommon/linden_common.h index 25dd629..bf844b9 100644 --- a/linden/indra/llcommon/linden_common.h +++ b/linden/indra/llcommon/linden_common.h | |||
@@ -51,16 +51,16 @@ | |||
51 | #include <cstdio> | 51 | #include <cstdio> |
52 | #include <cstdlib> | 52 | #include <cstdlib> |
53 | #include <ctime> | 53 | #include <ctime> |
54 | #include <iostream> | 54 | #include <iosfwd> |
55 | #include <fstream> | ||
56 | 55 | ||
57 | // Work Microsoft compiler warnings | 56 | // Work around Microsoft compiler warnings in STL headers |
58 | #ifdef LL_WINDOWS | 57 | #ifdef LL_WINDOWS |
59 | #pragma warning (disable : 4702) // unreachable code | 58 | #pragma warning (disable : 4702) // unreachable code |
60 | #pragma warning (disable : 4244) // conversion from time_t to S32 | 59 | #pragma warning (disable : 4244) // conversion from time_t to S32 |
61 | #endif // LL_WINDOWS | 60 | #endif // LL_WINDOWS |
62 | 61 | ||
63 | #include <algorithm> | 62 | // *TODO: Eliminate these, most library .cpp files don't need them. |
63 | // Add them to llviewerprecompiledheaders.h if necessary. | ||
64 | #include <list> | 64 | #include <list> |
65 | #include <map> | 65 | #include <map> |
66 | #include <vector> | 66 | #include <vector> |
@@ -76,18 +76,21 @@ | |||
76 | #pragma warning (disable : 4512) // assignment operator could not be generated | 76 | #pragma warning (disable : 4512) // assignment operator could not be generated |
77 | #pragma warning (disable : 4706) // assignment within conditional (even if((x = y)) ) | 77 | #pragma warning (disable : 4706) // assignment within conditional (even if((x = y)) ) |
78 | #pragma warning (disable : 4265) // boost 1.36.0, non-virtual destructor in boost::exception_detail::* | 78 | #pragma warning (disable : 4265) // boost 1.36.0, non-virtual destructor in boost::exception_detail::* |
79 | |||
80 | // Reenable warnings we disabled above | ||
81 | #pragma warning (3 : 4702) // unreachable code, we like level 3, not 4 | ||
82 | // moved msvc warnings to llpreprocessor.h *TODO - delete this comment after merge conflicts are unlikely -brad | ||
79 | #endif // LL_WINDOWS | 83 | #endif // LL_WINDOWS |
80 | 84 | ||
81 | // Linden only libs in alpha-order other than stdtypes.h | 85 | // Linden only libs in alpha-order other than stdtypes.h |
86 | // *NOTE: Please keep includes here to a minimum, see above. | ||
82 | #include "stdtypes.h" | 87 | #include "stdtypes.h" |
83 | #include "lldefs.h" | 88 | #include "lldefs.h" |
84 | #include "llerror.h" | 89 | #include "llerror.h" |
85 | #include "llextendedstatus.h" | 90 | #include "llextendedstatus.h" |
86 | #include "llfasttimer.h" | 91 | // Don't do this, adds 15K lines of header code to every library file. |
92 | //#include "llfasttimer.h" | ||
87 | #include "llfile.h" | 93 | #include "llfile.h" |
88 | #include "llformat.h" | 94 | #include "llformat.h" |
89 | #include "llstring.h" | ||
90 | #include "llsys.h" | ||
91 | #include "lltimer.h" | ||
92 | 95 | ||
93 | #endif | 96 | #endif |