OSVR-Core
EigenCoreGeometry.h
Go to the documentation of this file.
1 
12 // Copyright 2014 Sensics, Inc.
13 //
14 // Licensed under the Apache License, Version 2.0 (the "License");
15 // you may not use this file except in compliance with the License.
16 // You may obtain a copy of the License at
17 //
18 // http://www.apache.org/licenses/LICENSE-2.0
19 //
20 // Unless required by applicable law or agreed to in writing, software
21 // distributed under the License is distributed on an "AS IS" BASIS,
22 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 // See the License for the specific language governing permissions and
24 // limitations under the License.
25 
26 #ifndef INCLUDED_EigenCoreGeometry_h_GUID_84777061_9532_4BBD_0ADC_3E53E516AE23
27 #define INCLUDED_EigenCoreGeometry_h_GUID_84777061_9532_4BBD_0ADC_3E53E516AE23
28 
29 #if 0 // warning suppressions no longer needed with currently-used Eigen version
30 #ifdef _MSC_VER
31 #define OSVR_MSVC_WARNINGS_PUSHED
32 #pragma warning(push)
33 #pragma warning(disable : 4127)
34 #endif
35 #endif
36 
37 #if defined(__clang__) || \
38  (defined(__GNUC__) && (((__GNUC__ * 100) + __GNUC_MINOR__) >= 406))
39 // Suppress std::binder1st/std::binder2nd deprecation notices when building as
40 // new c++
41 #define OSVR_GCC_WARNINGS_PUSHED
42 #pragma GCC diagnostic push
43 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
44 #endif
45 
46 #include <Eigen/Core>
47 #include <Eigen/Geometry>
48 
49 #ifdef OSVR_GCC_WARNINGS_PUSHED
50 #undef OSVR_GCC_WARNINGS_PUSHED
51 #pragma GCC diagnostic pop
52 #endif
53 
54 #ifdef OSVR_MSVC_WARNINGS_PUSHED
55 #undef OSVR_MSVC_WARNINGS_PUSHED
56 #pragma warning(pop)
57 #endif
58 
59 #endif // INCLUDED_EigenCoreGeometry_h_GUID_84777061_9532_4BBD_0ADC_3E53E516AE23