https://llvm.org/bugs/show_bug.cgi?id=23147

            Bug ID: 23147
           Summary: #include_netxt <Intrin.h> is not included in VS?
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Headers
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Hello, 

I was trying to compile a simple program which called __rdtsc() on MacOs, and
was failing with the following error:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include/intrin.h:26:15:
fatal error:
      'Intrin.h' file not found
#include_next <Intrin.h>
              ^
1 error generated.

I checked the header file and noticed that comment above #include_next does not
match the code:

https://github.com/llvm-mirror/clang/blob/3e1cca7ad0cc730b54c1a2057f9ce36a85eab75a/lib/Headers/Intrin.h#L24-L27

I think it should be #ifdef _MSC_VER, or I am missing something?

Thank you!

Best,
Alex

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to