Don't include config.h in public headers
authorDylan Noblesmith <nobled@dreamwidth.org>
Thu, 23 Jun 2011 12:34:31 +0000 (12:34 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Thu, 23 Jun 2011 12:34:31 +0000 (12:34 +0000)
Replace it with llvm-config.h, which defines a subset of
config.h's macros "so that they can be in exported headers
and won't override package specific directives", e.g.,
PACKAGE_NAME.

Endian.h wasn't using any macros at all though, so just delete
the include there instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133712 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Endian.h
include/llvm/Support/system_error.h

index f62eab0702b4508a1a7678472ce9e44c566e6baf..af1b506d6cf452eba95a79170b494d9d5eade913 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef LLVM_SUPPORT_ENDIAN_H
 #define LLVM_SUPPORT_ENDIAN_H
 
-#include "llvm/Config/config.h"
 #include "llvm/Support/Host.h"
 #include "llvm/Support/SwapByteOrder.h"
 #include "llvm/Support/type_traits.h"
index b77030d1edb35ce8f911d9f6f18314356b1f72b7..2c15b69c94209ac5c8bf3bcee13a62ff85e78794 100644 (file)
@@ -222,7 +222,7 @@ template <> struct hash<std::error_code>;
 
 */
 
-#include "llvm/Config/config.h"
+#include "llvm/Config/llvm-config.h"
 #include "llvm/Support/type_traits.h"
 #include <cerrno>
 #include <string>