[PATCH] D56620: [COFF, ARM64] Include stdlib.h in arm64intr.h

Mandeep Singh Grang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 11 16:04:28 PST 2019


mgrang created this revision.
mgrang added reviewers: rnk, efriedma, ssijaric, TomTan, haripul.
Herald added subscribers: kristof.beyls, javed.absar.

We mimic x86 behavior which includes stdlib.h in x86intr.h.


Repository:
  rC Clang

https://reviews.llvm.org/D56620

Files:
  lib/Headers/arm64intr.h


Index: lib/Headers/arm64intr.h
===================================================================
--- lib/Headers/arm64intr.h
+++ lib/Headers/arm64intr.h
@@ -26,6 +26,10 @@
 #include_next <arm64intr.h>
 #else
 
+#if __STDC_HOSTED__
+#include <stdlib.h>
+#endif
+
 #ifndef __ARM64INTR_H
 #define __ARM64INTR_H
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56620.181388.patch
Type: text/x-patch
Size: 312 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190112/d54cfcbc/attachment.bin>


More information about the cfe-commits mailing list