diff options
| author | Karl Schultz <karl@lunarg.com> | 2018-01-02 09:10:42 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2018-01-04 07:52:12 -0700 |
| commit | a43f2588a8910e78d8fc3a325147b0fd75f42b2e (patch) | |
| tree | ea85282fcb5d20444502344c8eb2b14e829f246e /scripts | |
| parent | f9d82fc0ff547f4dbcb9461a4421863387139f8b (diff) | |
| download | usermoji-a43f2588a8910e78d8fc3a325147b0fd75f42b2e.tar.xz | |
icd: Move include to header to fix clang build
Move include <string> to header file to fix
clang build when using libstdc++.
Fixes #2303
Change-Id: Id2fc97be7cb83fa12ee1495ef57177c0a7dad893
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mock_icd_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index 3366aa18..de8a9066 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -820,11 +820,11 @@ class MockICDOutputGenerator(OutputGenerator): if self.header: write('#include <unordered_map>', file=self.outFile) write('#include <mutex>', file=self.outFile) + write('#include <string>', file=self.outFile) write('#include <cstring>', file=self.outFile) write('#include "vulkan/vk_icd.h"', file=self.outFile) else: write('#include "mock_icd.h"', file=self.outFile) - write('#include <string.h>', file=self.outFile) write('#include <stdlib.h>', file=self.outFile) write('#include <vector>', file=self.outFile) |
