OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2016 Google Inc. | 3 * Copyright 2016 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GrVkDefines_DEFINED | 9 #ifndef GrVkDefines_DEFINED |
10 #define GrVkDefines_DEFINED | 10 #define GrVkDefines_DEFINED |
11 | 11 |
12 #if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_WIN32) | 12 #if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_WIN32) |
13 #define VK_USE_PLATFORM_WIN32_KHR | 13 # define VK_USE_PLATFORM_WIN32_KHR |
14 #elif defined(SK_BUILD_FOR_ANDROID) | 14 #elif defined(SK_BUILD_FOR_ANDROID) |
15 #define VK_USE_PLATFORM_ANDROID_KHR | 15 # define VK_USE_PLATFORM_ANDROID_KHR |
16 #elif defined(SK_BUILD_FOR_UNIX) | 16 #elif defined(SK_BUILD_FOR_UNIX) |
17 #define VK_USE_PLATFORM_XLIB_KHR | 17 # define VK_USE_PLATFORM_XLIB_KHR |
| 18 #endif |
| 19 |
| 20 #ifdef Bool |
| 21 # pragma error "Bool is unexpectedly defined." |
18 #endif | 22 #endif |
19 | 23 |
20 #include <vulkan/vulkan.h> | 24 #include <vulkan/vulkan.h> |
21 | 25 |
| 26 // Xlib.h may define this macro (Grrr) |
| 27 #ifdef Bool |
| 28 # undef Bool |
22 #endif | 29 #endif |
| 30 |
| 31 #endif |
OLD | NEW |