aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/cmake/Boost.cmake26
-rw-r--r--linden/indra/llcommon/linden_common.h1
-rw-r--r--linden/indra/llmath/llmath.h9
-rw-r--r--linden/indra/newview/llfloaterhtmlhelp.cpp3
-rw-r--r--linden/indra/newview/llfloaterhtmlhelp.h3
5 files changed, 29 insertions, 13 deletions
diff --git a/linden/indra/cmake/Boost.cmake b/linden/indra/cmake/Boost.cmake
index 0578ae9..50b8eff 100644
--- a/linden/indra/cmake/Boost.cmake
+++ b/linden/indra/cmake/Boost.cmake
@@ -15,18 +15,18 @@ else (STANDALONE)
15 set(Boost_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include) 15 set(Boost_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
16 16
17 if (WINDOWS) 17 if (WINDOWS)
18 set(BOOST_VERSION 1_34_1) 18 set(BOOST_VERSION 1_36)
19 if (MSVC71) 19 if (MSVC71)
20 set(BOOST_PROGRAM_OPTIONS_LIBRARY 20 set(BOOST_PROGRAM_OPTIONS_LIBRARY
21 optimized libboost_program_options-vc71-mt-s-${BOOST_VERSION} 21 optimized libboost_program_options-vc71-mt-${BOOST_VERSION}
22 debug libboost_program_options-vc71-mt-sgd-${BOOST_VERSION}) 22 debug libboost_program_options-vc71-mt-gd-${BOOST_VERSION})
23 set(BOOST_REGEX_LIBRARY 23 set(BOOST_REGEX_LIBRARY
24 optimized libboost_regex-vc71-mt-s-${BOOST_VERSION} 24 optimized libboost_regex-vc71-mt-${BOOST_VERSION}
25 debug libboost_regex-vc71-mt-sgd-${BOOST_VERSION}) 25 debug libboost_regex-vc71-mt-gd-${BOOST_VERSION})
26 set(BOOST_SIGNALS_LIBRARY 26 set(BOOST_SIGNALS_LIBRARY
27 optimized libboost_signals-vc71-mt-s-${BOOST_VERSION} 27 optimized libboost_signals-vc71-mt-${BOOST_VERSION}
28 debug libboost_signals-vc71-mt-sgd-${BOOST_VERSION}) 28 debug libboost_signals-vc71-mt-gd-${BOOST_VERSION})
29 else (MSVC71) 29 elseif (MSVC80)
30 set(BOOST_PROGRAM_OPTIONS_LIBRARY 30 set(BOOST_PROGRAM_OPTIONS_LIBRARY
31 optimized libboost_program_options-vc80-mt-${BOOST_VERSION} 31 optimized libboost_program_options-vc80-mt-${BOOST_VERSION}
32 debug libboost_program_options-vc80-mt-gd-${BOOST_VERSION}) 32 debug libboost_program_options-vc80-mt-gd-${BOOST_VERSION})
@@ -36,6 +36,16 @@ else (STANDALONE)
36 set(BOOST_SIGNALS_LIBRARY 36 set(BOOST_SIGNALS_LIBRARY
37 optimized libboost_signals-vc80-mt-${BOOST_VERSION} 37 optimized libboost_signals-vc80-mt-${BOOST_VERSION}
38 debug libboost_signals-vc80-mt-gd-${BOOST_VERSION}) 38 debug libboost_signals-vc80-mt-gd-${BOOST_VERSION})
39 elseif (MSVC90)
40 set(BOOST_PROGRAM_OPTIONS_LIBRARY
41 optimized libboost_program_options-vc90-mt-${BOOST_VERSION}
42 debug libboost_program_options-vc90-mt-gd-${BOOST_VERSION})
43 set(BOOST_REGEX_LIBRARY
44 optimized libboost_regex-vc90-mt-${BOOST_VERSION}
45 debug libboost_regex-vc90-mt-gd-${BOOST_VERSION})
46 set(BOOST_SIGNALS_LIBRARY
47 optimized libboost_signals-vc90-mt-${BOOST_VERSION}
48 debug libboost_signals-vc90-mt-gd-${BOOST_VERSION})
39 endif (MSVC71) 49 endif (MSVC71)
40 elseif (DARWIN) 50 elseif (DARWIN)
41 set(BOOST_PROGRAM_OPTIONS_LIBRARY boost_program_options-mt) 51 set(BOOST_PROGRAM_OPTIONS_LIBRARY boost_program_options-mt)
diff --git a/linden/indra/llcommon/linden_common.h b/linden/indra/llcommon/linden_common.h
index f9d5877..25dd629 100644
--- a/linden/indra/llcommon/linden_common.h
+++ b/linden/indra/llcommon/linden_common.h
@@ -75,6 +75,7 @@
75#pragma warning (disable : 4396) // the inline specifier cannot be used when a friend declaration refers to a specialization of a function template 75#pragma warning (disable : 4396) // the inline specifier cannot be used when a friend declaration refers to a specialization of a function template
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#endif // LL_WINDOWS 79#endif // LL_WINDOWS
79 80
80// Linden only libs in alpha-order other than stdtypes.h 81// Linden only libs in alpha-order other than stdtypes.h
diff --git a/linden/indra/llmath/llmath.h b/linden/indra/llmath/llmath.h
index 66451b1..9f8e539 100644
--- a/linden/indra/llmath/llmath.h
+++ b/linden/indra/llmath/llmath.h
@@ -60,9 +60,7 @@
60#endif 60#endif
61 61
62// Single Precision Floating Point Routines 62// Single Precision Floating Point Routines
63#ifndef fsqrtf 63#if _MSC_VER < 1400
64#define fsqrtf(x) ((F32)sqrt((F64)(x)))
65#endif
66#ifndef sqrtf 64#ifndef sqrtf
67#define sqrtf(x) ((F32)sqrt((F64)(x))) 65#define sqrtf(x) ((F32)sqrt((F64)(x)))
68#endif 66#endif
@@ -83,6 +81,11 @@
83#ifndef powf 81#ifndef powf
84#define powf(x,y) ((F32)pow((F64)(x),(F64)(y))) 82#define powf(x,y) ((F32)pow((F64)(x),(F64)(y)))
85#endif 83#endif
84#endif
85
86#ifndef fsqrtf
87#define fsqrtf(x) sqrtf(x)
88#endif
86 89
87const F32 GRAVITY = -9.8f; 90const F32 GRAVITY = -9.8f;
88 91
diff --git a/linden/indra/newview/llfloaterhtmlhelp.cpp b/linden/indra/newview/llfloaterhtmlhelp.cpp
index 8de489a..607a245 100644
--- a/linden/indra/newview/llfloaterhtmlhelp.cpp
+++ b/linden/indra/newview/llfloaterhtmlhelp.cpp
@@ -307,6 +307,8 @@ public:
307 virtual void draw(); 307 virtual void draw();
308 308
309 static void show(std::string url, std::string title); 309 static void show(std::string url, std::string title);
310
311private:
310 static void onClickBack( void* data ); 312 static void onClickBack( void* data );
311 static void onClickHome( void* data ); 313 static void onClickHome( void* data );
312 static void onClickForward( void* data ); 314 static void onClickForward( void* data );
@@ -321,7 +323,6 @@ public:
321 323
322 static bool onClickF1HelpLoadURL(const LLSD& notification, const LLSD& response); 324 static bool onClickF1HelpLoadURL(const LLSD& notification, const LLSD& response);
323 325
324protected:
325 LLWebBrowserCtrl* mWebBrowser; 326 LLWebBrowserCtrl* mWebBrowser;
326 static LLFloaterHtmlHelp* sInstance; 327 static LLFloaterHtmlHelp* sInstance;
327 LLButton* mBackButton; 328 LLButton* mBackButton;
diff --git a/linden/indra/newview/llfloaterhtmlhelp.h b/linden/indra/newview/llfloaterhtmlhelp.h
index 5b09634..fa04f06 100644
--- a/linden/indra/newview/llfloaterhtmlhelp.h
+++ b/linden/indra/newview/llfloaterhtmlhelp.h
@@ -69,6 +69,8 @@ public:
69 69
70 static void toggle(); 70 static void toggle();
71 static void helpF1(); 71 static void helpF1();
72
73private:
72 static void onEnterAddress(LLUICtrl* ctrl, void* user_data); 74 static void onEnterAddress(LLUICtrl* ctrl, void* user_data);
73 static void onClickRefresh(void* user_data); 75 static void onClickRefresh(void* user_data);
74 static void onClickBack(void* user_data); 76 static void onClickBack(void* user_data);
@@ -81,7 +83,6 @@ public:
81 static void onClickSetHome(void* user_data); 83 static void onClickSetHome(void* user_data);
82 static bool onClickF1HelpLoadURL(const LLSD& notification, const LLSD& response); 84 static bool onClickF1HelpLoadURL(const LLSD& notification, const LLSD& response);
83 85
84private:
85 LLWebBrowserCtrl* mBrowser; 86 LLWebBrowserCtrl* mBrowser;
86 LLComboBox* mAddressCombo; 87 LLComboBox* mAddressCombo;
87 std::string mCurrentURL; 88 std::string mCurrentURL;