diff options
author | Jamie Madill <jmadill@chromium.org> | 2017-03-21 13:48:13 -0400 |
---|---|---|
committer | Mark Young <marky@lunarg.com> | 2017-03-22 14:14:21 -0600 |
commit | d768d22c1ccff19364fe4065c1500637c99f27df (patch) | |
tree | f400315d48b6fee9f7181748bea351db09274a57 /loader | |
parent | c010f68376a969d9f38bb8d1cf6dfc097f097de2 (diff) |
loader: Add guard around cmake header include.
This allows non-cmake platforms to compile the loader. Use a define
named VULKAN_NON_CMAKE_BUILD to disable CMAKE-specific features.
Change-Id: I6f6d8731fe1be60fd138e9fe1006c913fb029b47
Diffstat (limited to 'loader')
-rw-r--r-- | loader/loader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c index e4da0bd6..facddc18 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -50,7 +50,9 @@ // This is a CMake generated file with #defines for any functions/includes // that it found present. This is currently necessary to properly determine // if secure_getenv or __secure_getenv are present +#if !defined(VULKAN_NON_CMAKE_BUILD) #include "loader_cmake_config.h" +#endif // !defined(VULKAN_NON_CMAKE_BUILD) // Generated file containing all the extension data #include "vk_loader_extensions.c" |