OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
StdAlignWrapper.h
Go to the documentation of this file.
1 
12 // Copyright 2015 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_StdAlignWrapper_h_GUID_9F942A35_6F5B_4895_EE43_C3E2C5C453D8
27 #define INCLUDED_StdAlignWrapper_h_GUID_9F942A35_6F5B_4895_EE43_C3E2C5C453D8
28 
29 /* #undef OSVR_HAVE_STDALIGN */
30 
31 #ifdef OSVR_HAVE_STDALIGN
32 #include <memory>
33 #else
34 #include <libcxx_backports/stdalign.h> // the backported header snipped from libc++
35 #endif
36 
37 namespace osvr {
38 #ifdef OSVR_HAVE_STDALIGN
39 using std::align;
40 #else
41 using libcxx_backports::align;
42 #endif
43 } // namespace osvr
44 
45 #endif // INCLUDED_StdAlignWrapper_h_GUID_9F942A35_6F5B_4895_EE43_C3E2C5C453D8