[llvm-commits] [gcc-plugin] r76332 - in /gcc-plugin/trunk: llvm-convert.cpp llvm-debug.cpp llvm-types.cpp
Duncan Sands
baldrick at free.fr
Sat Jul 18 13:23:54 PDT 2009
Author: baldrick
Date: Sat Jul 18 15:23:46 2009
New Revision: 76332
URL: http://llvm.org/viewvc/llvm-project?rev=76332&view=rev
Log:
Wrap the #include of system.h in an "extern "C"" wrapper.
Putting wrappers into this header is a pain because it is
an endless list of declarations interspersed with includes,
which would require a ton of wrapper code.
Modified:
gcc-plugin/trunk/llvm-convert.cpp
gcc-plugin/trunk/llvm-debug.cpp
gcc-plugin/trunk/llvm-types.cpp
Modified: gcc-plugin/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-convert.cpp?rev=76332&r1=76331&r2=76332&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-convert.cpp (original)
+++ gcc-plugin/trunk/llvm-convert.cpp Sat Jul 18 15:23:46 2009
@@ -49,7 +49,9 @@
#define IN_GCC
#include "config.h"
+extern "C" {
#include "system.h"
+}
#include "coretypes.h"
#include "target.h"
#include "tree.h"
Modified: gcc-plugin/trunk/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-debug.cpp?rev=76332&r1=76331&r2=76332&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-debug.cpp (original)
+++ gcc-plugin/trunk/llvm-debug.cpp Sat Jul 18 15:23:46 2009
@@ -40,7 +40,9 @@
#define IN_GCC
#include "config.h"
+extern "C" {
#include "system.h"
+}
#include "coretypes.h"
#include "target.h"
#include "tree.h"
Modified: gcc-plugin/trunk/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-types.cpp?rev=76332&r1=76331&r2=76332&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-types.cpp (original)
+++ gcc-plugin/trunk/llvm-types.cpp Sat Jul 18 15:23:46 2009
@@ -44,7 +44,9 @@
#define IN_GCC
#include "config.h"
+extern "C" {
#include "system.h"
+}
#include "coretypes.h"
#include "tree.h"
More information about the llvm-commits
mailing list