[llvm-commits] [llvm] r133712 - in /llvm/trunk/include/llvm/Support: Endian.h system_error.h
Dylan Noblesmith
nobled at dreamwidth.org
Thu Jun 23 05:34:31 PDT 2011
Author: nobled
Date: Thu Jun 23 07:34:31 2011
New Revision: 133712
URL: http://llvm.org/viewvc/llvm-project?rev=133712&view=rev
Log:
Don't include config.h in public headers
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.
Modified:
llvm/trunk/include/llvm/Support/Endian.h
llvm/trunk/include/llvm/Support/system_error.h
Modified: llvm/trunk/include/llvm/Support/Endian.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Endian.h?rev=133712&r1=133711&r2=133712&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Endian.h (original)
+++ llvm/trunk/include/llvm/Support/Endian.h Thu Jun 23 07:34:31 2011
@@ -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"
Modified: llvm/trunk/include/llvm/Support/system_error.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/system_error.h?rev=133712&r1=133711&r2=133712&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/system_error.h (original)
+++ llvm/trunk/include/llvm/Support/system_error.h Thu Jun 23 07:34:31 2011
@@ -222,7 +222,7 @@
*/
-#include "llvm/Config/config.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/Support/type_traits.h"
#include <cerrno>
#include <string>
More information about the llvm-commits
mailing list