diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-10-03 00:31:35 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-10-03 00:31:35 +0000 |
| commit | ef99e4d88a251ca162e5611b05ea769a8574a68d (patch) | |
| tree | ebbd3fcf8eeb5f511d5fc2b355c2934df09d341c /clang/lib/Headers/module.modulemap | |
| parent | 5312afe7e1b9646d096e92b30fcaf720c93186f9 (diff) | |
| download | bcm5719-llvm-ef99e4d88a251ca162e5611b05ea769a8574a68d.tar.gz bcm5719-llvm-ef99e4d88a251ca162e5611b05ea769a8574a68d.zip | |
Fix interaction of max_align_t and modules.
When building with modules enabled, we were defining max_align_t as a typedef
for a different anonymous struct type each time it was included, resulting in
an error if <stddef.h> is not covered by a module map and is included more than
once in the same modules-enabled compilation of C11 or C++11 code.
llvm-svn: 218931
Diffstat (limited to 'clang/lib/Headers/module.modulemap')
| -rw-r--r-- | clang/lib/Headers/module.modulemap | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Headers/module.modulemap b/clang/lib/Headers/module.modulemap index 93e4d65b8f1..3c42477405b 100644 --- a/clang/lib/Headers/module.modulemap +++ b/clang/lib/Headers/module.modulemap @@ -170,3 +170,7 @@ module _Builtin_intrinsics [system] { } } } + +module _Builtin_stddef_max_align_t [system] [extern_c] { + header "__stddef_max_align_t.h" +} |

