[dali_2.3.21] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-physics / third-party / bullet3 / src / Bullet3OpenCL / Initialize / b3OpenCLInclude.h
1 /*
2 Bullet Continuous Collision Detection and Physics Library
3 Copyright (c) 2011 Advanced Micro Devices, Inc.  http://bulletphysics.org
4
5 This software is provided 'as-is', without any express or implied warranty.
6 In no event will the authors be held liable for any damages arising from the use of this software.
7 Permission is granted to anyone to use this software for any purpose, 
8 including commercial applications, and to alter it and redistribute it freely, 
9 subject to the following restrictions:
10
11 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
12 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13 3. This notice may not be removed or altered from any source distribution.
14 */
15
16 #ifndef B3_OPENCL_INCLUDE_H
17 #define B3_OPENCL_INCLUDE_H
18
19 #ifdef B3_USE_CLEW
20 #include "clew/clew.h"
21 #else
22
23 #ifdef __APPLE__
24 #ifdef USE_MINICL
25 #include <MiniCL/cl.h>
26 #else
27 #include <OpenCL/cl.h>
28 #include <OpenCL/cl_ext.h>  //clLogMessagesToStderrAPPLE
29 #endif
30 #else
31 #ifdef USE_MINICL
32 #include <MiniCL/cl.h>
33 #else
34 #include <CL/cl.h>
35 #ifdef _WIN32
36 #include "CL/cl_gl.h"
37 #endif  //_WIN32
38 #endif
39 #endif  //__APPLE__
40 #endif  //B3_USE_CLEW
41
42 #include <assert.h>
43 #include <stdio.h>
44 #define oclCHECKERROR(a, b)              \
45         if ((a) != (b))                      \
46         {                                    \
47                 printf("OCL Error : %d\n", (a)); \
48                 assert((a) == (b));              \
49         }
50
51 #endif  //B3_OPENCL_INCLUDE_H