]> granicus.if.org Git - clang/commitdiff
Disallow multiple inclusion of clang/Config/config.h
authorAlp Toker <alp@nuanti.com>
Mon, 9 Jun 2014 19:09:28 +0000 (19:09 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 9 Jun 2014 19:09:28 +0000 (19:09 +0000)
Internal config.h headers are only meant to be included from the main file.

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

include/clang/Config/config.h.cmake
include/clang/Config/config.h.in

index 40a6cb3a2e3e1767b6acb03768e985e9d90ffaa8..7629ef9129b1f45d64682c1c64ccb10a0268c3c8 100644 (file)
@@ -1,4 +1,8 @@
-#ifndef CONFIG_H
+/* This generated file is for internal use. Do not include it from headers. */
+
+#ifdef CONFIG_H
+#error config.h can only be included once
+#else
 #define CONFIG_H
 
 /* Bug report URL. */
index 450ea9b613e860430f32d695f9accc512c633ff5..1530fefaa53d4221c2df8d642dac312465e607cc 100644 (file)
@@ -1,4 +1,8 @@
-#ifndef CONFIG_H
+/* This generated file is for internal use. Do not include it from headers. */
+
+#ifdef CONFIG_H
+#error config.h can only be included once
+#else
 #define CONFIG_H
 
 /* Bug report URL. */