[LLVMbugs] [Bug 19024] New: #define __FLOAT_H is likely to clash in float.h

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 2 04:06:15 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=19024

            Bug ID: 19024
           Summary: #define __FLOAT_H is likely to clash in float.h
           Product: clang
           Version: 3.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Headers
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eregontp at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Hello,

Clang's float.h uses the "__FLOAT_H" name to prevent double inclusion.
However this name is not so rare and I actually ran into a project using the
same #define name, which makes the compilation fails.

If we look at the other names, they seem unlikely to clash with project include
names (either they use names unlikely for chosen filenames or are prefixed with
__CLANG_ or with __STD).

Therefore I would like to request the name used in float.h to be changed from
__FLOAT_H to __CLANG_FLOAT_H (like __CLANG_LIMITS_H).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140302/56c0ad30/attachment.html>


More information about the llvm-bugs mailing list