Merge branch 'mesa_7_5_branch'
[mesa.git] / include / VG / vgplatform.h
1 /* $Revision: 6810 $ on $Date:: 2008-10-29 10:31:37 -0400 #$ */
2
3 /*------------------------------------------------------------------------
4 *
5 * VG platform specific header Reference Implementation
6 * ----------------------------------------------------
7 *
8 * Copyright (c) 2008 The Khronos Group Inc.
9 *
10 * Permission is hereby granted, free of charge, to any person obtaining a
11 * copy of this software and /or associated documentation files
12 * (the "Materials "), to deal in the Materials without restriction,
13 * including without limitation the rights to use, copy, modify, merge,
14 * publish, distribute, sublicense, and/or sell copies of the Materials,
15 * and to permit persons to whom the Materials are furnished to do so,
16 * subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Materials.
20 *
21 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
26 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
27 * THE USE OR OTHER DEALINGS IN THE MATERIALS.
28 *
29 *//**
30 * \file
31 * \brief VG platform specific header
32 *//*-------------------------------------------------------------------*/
33
34 #ifndef _VGPLATFORM_H
35 #define _VGPLATFORM_H
36
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40
41 #ifndef VG_API_CALL
42 #if defined(OPENVG_STATIC_LIBRARY)
43 # define VG_API_CALL
44 #else
45 # if defined(_WIN32) || defined(__VC32__) /* Win32 */
46 # if defined (OPENVG_DLL_EXPORTS)
47 # define VG_API_CALL __declspec(dllexport)
48 # else
49 # define VG_API_CALL __declspec(dllimport)
50 # endif
51 # else
52 # define VG_API_CALL extern
53 # endif /* defined(_WIN32) ||... */
54 #endif /* defined OPENVG_STATIC_LIBRARY */
55 #endif /* ifndef VG_API_CALL */
56
57 #ifndef VGU_API_CALL
58 #if defined(OPENVG_STATIC_LIBRARY)
59 # define VGU_API_CALL
60 #else
61 # if defined(_WIN32) || defined(__VC32__) /* Win32 */
62 # if defined (OPENVG_DLL_EXPORTS)
63 # define VGU_API_CALL __declspec(dllexport)
64 # else
65 # define VGU_API_CALL __declspec(dllimport)
66 # endif
67 # else
68 # define VGU_API_CALL extern
69 # endif /* defined(_WIN32) ||... */
70 #endif /* defined OPENVG_STATIC_LIBRARY */
71 #endif /* ifndef VGU_API_CALL */
72
73
74 #ifndef VG_API_ENTRY
75 #define VG_API_ENTRY
76 #endif
77
78 #ifndef VG_API_EXIT
79 #define VG_API_EXIT
80 #endif
81
82 #ifndef VGU_API_ENTRY
83 #define VGU_API_ENTRY
84 #endif
85
86 #ifndef VGU_API_EXIT
87 #define VGU_API_EXIT
88 #endif
89
90 typedef float VGfloat;
91 typedef signed char VGbyte;
92 typedef unsigned char VGubyte;
93 typedef signed short VGshort;
94 typedef signed int VGint;
95 typedef unsigned int VGuint;
96 typedef unsigned int VGbitfield;
97
98 #ifndef VG_VGEXT_PROTOTYPES
99 #define VG_VGEXT_PROTOTYPES
100 #endif
101
102 #ifdef __cplusplus
103 } /* extern "C" */
104 #endif
105
106 #endif /* _VGPLATFORM_H */