OniPlatformLinux-x86.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * *
3 * OpenNI 2.x Alpha *
4 * Copyright (C) 2012 PrimeSense Ltd. *
5 * *
6 * This file is part of OpenNI. *
7 * *
8 * Licensed under the Apache License, Version 2.0 (the "License"); *
9 * you may not use this file except in compliance with the License. *
10 * You may obtain a copy of the License at *
11 * *
12 * http://www.apache.org/licenses/LICENSE-2.0 *
13 * *
14 * Unless required by applicable law or agreed to in writing, software *
15 * distributed under the License is distributed on an "AS IS" BASIS, *
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
17 * See the License for the specific language governing permissions and *
18 * limitations under the License. *
19 * *
20 *****************************************************************************/
21 #ifndef ONIPLATFORMLINUX_X86_H
22 #define ONIPLATFORMLINUX_X86_H
23 
24 //---------------------------------------------------------------------------
25 // Prerequisites
26 //---------------------------------------------------------------------------
27 
28 //---------------------------------------------------------------------------
29 // Includes
30 //---------------------------------------------------------------------------
31 #include <unistd.h>
32 #include <stdlib.h>
33 #include <stdio.h>
34 #include <string.h>
35 #include <assert.h>
36 #include <limits.h>
37 #include <stdint.h>
38 
39 //---------------------------------------------------------------------------
40 // Platform Basic Definition
41 //---------------------------------------------------------------------------
42 #define ONI_PLATFORM ONI_PLATFORM_LINUX_X86
43 #define ONI_PLATFORM_STRING "Linux-x86"
44 
45 //---------------------------------------------------------------------------
46 // Platform Capabilities
47 //---------------------------------------------------------------------------
48 #define ONI_PLATFORM_ENDIAN_TYPE ONI_PLATFORM_IS_LITTLE_ENDIAN
49 
50 #define ONI_PLATFORM_SUPPORTS_DYNAMIC_LIBS 1
51 
52 //---------------------------------------------------------------------------
53 // Memory
54 //---------------------------------------------------------------------------
56 #define ONI_DEFAULT_MEM_ALIGN 16
57 
59 #define ONI_THREAD_STATIC __thread
60 
61 //---------------------------------------------------------------------------
62 // Files
63 //---------------------------------------------------------------------------
65 #define ONI_FILE_MAX_PATH 256
66 
67 //---------------------------------------------------------------------------
68 // Call back
69 //---------------------------------------------------------------------------
71 #define ONI_STDCALL __stdcall
72 
74 #define ONI_CALLBACK_TYPE
75 
77 #define ONI_C_DECL
78 
79 //---------------------------------------------------------------------------
80 // Macros
81 //---------------------------------------------------------------------------
83 #define ONI_TIMESTAMP __DATE__ " " __TIME__
84 
86 #define ONI_STRINGIFY(n) ONI_STRINGIFY_HELPER(n)
87 #define ONI_STRINGIFY_HELPER(n) #n
88 
89 //---------------------------------------------------------------------------
90 // API Export/Import Macros
91 //---------------------------------------------------------------------------
93 #define ONI_API_EXPORT __attribute__ ((visibility("default")))
94 
96 #define ONI_API_IMPORT
97 
99 #define ONI_API_DEPRECATED(msg) __attribute__((warning("This function is deprecated: " msg)))
100 
101 #endif // ONIPLATFORMLINUX_X86_H
102 


astra_camera
Author(s): Tim Liu
autogenerated on Wed Dec 16 2020 03:54:34