Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / angle / src / common / platform.h
1 //
2 // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6
7 // platform.h: Operating system specific includes and defines.
8
9 #ifndef COMMON_PLATFORM_H_
10 #define COMMON_PLATFORM_H_
11
12 #if defined(_WIN32) || defined(_WIN64)
13 #   define ANGLE_PLATFORM_WINDOWS 1
14 #elif defined(__APPLE__)
15 #   define ANGLE_PLATFORM_APPLE 1
16 #   define ANGLE_PLATFORM_POSIX 1
17 #elif defined(__linux__)
18 #   define ANGLE_PLATFORM_LINUX 1
19 #   define ANGLE_PLATFORM_POSIX 1
20 #elif defined(ANDROID)
21 #   define ANGLE_PLATFORM_ANDROID 1
22 #   define ANGLE_PLATFORM_POSIX 1
23 #elif defined(__FreeBSD__) || \
24       defined(__OpenBSD__) || \
25       defined(__NetBSD__) || \
26       defined(__DragonFly__) || \
27       defined(__sun) || \
28       defined(__GLIBC__) || \
29       defined(__GNU__) || \
30       defined(__QNX__)
31 #   define ANGLE_PLATFORM_POSIX 1
32 #else
33 #   error Unsupported platform.
34 #endif
35
36 #ifdef ANGLE_PLATFORM_WINDOWS
37 #   if defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PC_APP
38 #       define ANGLE_ENABLE_WINDOWS_STORE 1
39 #   endif
40 #   ifndef STRICT
41 #       define STRICT 1
42 #   endif
43 #   ifndef WIN32_LEAN_AND_MEAN
44 #       define WIN32_LEAN_AND_MEAN 1
45 #   endif
46 #   ifndef NOMINMAX
47 #       define NOMINMAX 1
48 #   endif
49
50 #   include <windows.h>
51 #   include <intrin.h>
52
53 #   if defined(ANGLE_ENABLE_D3D9)
54 #       include <d3d9.h>
55 #       include <d3dcompiler.h>
56 #   endif
57
58 #   if defined(ANGLE_ENABLE_D3D11)
59 #       include <d3d10_1.h>
60 #       include <d3d11.h>
61 #       include <d3d11_1.h>
62 #       include <dxgi.h>
63 #       include <dxgi1_2.h>
64 #       include <d3dcompiler.h>
65 #   endif
66
67 #   if defined(ANGLE_ENABLE_WINDOWS_STORE)
68 #       include <dxgi1_3.h>
69 #       if defined(_DEBUG)
70 #           include <DXProgrammableCapture.h>
71 #           include <dxgidebug.h>
72 #       endif
73 #   endif
74
75 #   undef near
76 #   undef far
77 #endif
78
79 #endif // COMMON_PLATFORM_H_