PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llcommon/linden_common.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 85 lines | 37 code | 10 blank | 38 comment | 2 complexity | 46875d53d3f0bf6e6385a93198ae9938 MD5 | raw file
 1/** 
 2 * @file linden_common.h
 3 * @brief Includes common headers that are always safe to include
 4 *
 5 * $LicenseInfo:firstyear=2001&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2010, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_LINDEN_COMMON_H
28#define LL_LINDEN_COMMON_H
29
30// *NOTE:  Please keep includes here to a minimum!
31//
32// Files included here are included in every library .cpp file and
33// are not precompiled.
34
35#if defined(LL_WINDOWS) && defined(_DEBUG)
36# if _MSC_VER >= 1400 // Visual C++ 2005 or later
37#  define _CRTDBG_MAP_ALLOC
38#  include <stdlib.h>
39#  include <crtdbg.h>
40# endif
41#endif
42
43#include "llpreprocessor.h"
44
45#include <cstring>
46#include <cfloat>
47#include <climits>
48#include <cmath>
49#include <cstdarg>
50#include <cstdio>
51#include <cstdlib>
52#include <ctime>
53#include <iosfwd>
54
55// Work around Microsoft compiler warnings in STL headers
56#ifdef LL_WINDOWS
57#pragma warning (disable : 4702) // unreachable code
58#pragma warning (disable : 4244) // conversion from time_t to S32
59#endif	//	LL_WINDOWS
60
61// *TODO: Eliminate these, most library .cpp files don't need them.
62// Add them to llviewerprecompiledheaders.h if necessary.
63#include <list>
64#include <map>
65#include <vector>
66#include <string>
67
68#ifdef LL_WINDOWS
69// Reenable warnings we disabled above
70#pragma warning (3 : 4702) // unreachable code, we like level 3, not 4
71// moved msvc warnings to llpreprocessor.h  *TODO - delete this comment after merge conflicts are unlikely -brad
72#endif	//	LL_WINDOWS
73
74// Linden only libs in alpha-order other than stdtypes.h
75// *NOTE: Please keep includes here to a minimum, see above.
76#include "stdtypes.h"
77#include "lldefs.h"
78#include "llerror.h"
79#include "llextendedstatus.h"
80// Don't do this, adds 15K lines of header code to every library file.
81//#include "llfasttimer.h"
82#include "llfile.h"
83#include "llformat.h"
84
85#endif