PageRenderTime 143ms CodeModel.GetById 0ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  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. #ifndef LL_LINDEN_COMMON_H
  27. #define LL_LINDEN_COMMON_H
  28. // *NOTE: Please keep includes here to a minimum!
  29. //
  30. // Files included here are included in every library .cpp file and
  31. // are not precompiled.
  32. #if defined(LL_WINDOWS) && defined(_DEBUG)
  33. # if _MSC_VER >= 1400 // Visual C++ 2005 or later
  34. # define _CRTDBG_MAP_ALLOC
  35. # include <stdlib.h>
  36. # include <crtdbg.h>
  37. # endif
  38. #endif
  39. #include "llpreprocessor.h"
  40. #include <cstring>
  41. #include <cfloat>
  42. #include <climits>
  43. #include <cmath>
  44. #include <cstdarg>
  45. #include <cstdio>
  46. #include <cstdlib>
  47. #include <ctime>
  48. #include <iosfwd>
  49. // Work around Microsoft compiler warnings in STL headers
  50. #ifdef LL_WINDOWS
  51. #pragma warning (disable : 4702) // unreachable code
  52. #pragma warning (disable : 4244) // conversion from time_t to S32
  53. #endif // LL_WINDOWS
  54. // *TODO: Eliminate these, most library .cpp files don't need them.
  55. // Add them to llviewerprecompiledheaders.h if necessary.
  56. #include <list>
  57. #include <map>
  58. #include <vector>
  59. #include <string>
  60. #ifdef LL_WINDOWS
  61. // Reenable warnings we disabled above
  62. #pragma warning (3 : 4702) // unreachable code, we like level 3, not 4
  63. // moved msvc warnings to llpreprocessor.h *TODO - delete this comment after merge conflicts are unlikely -brad
  64. #endif // LL_WINDOWS
  65. // Linden only libs in alpha-order other than stdtypes.h
  66. // *NOTE: Please keep includes here to a minimum, see above.
  67. #include "stdtypes.h"
  68. #include "lldefs.h"
  69. #include "llerror.h"
  70. #include "llextendedstatus.h"
  71. // Don't do this, adds 15K lines of header code to every library file.
  72. //#include "llfasttimer.h"
  73. #include "llfile.h"
  74. #include "llformat.h"
  75. #endif