From 66b986abebbb89e9bdd11c21c1697af700abc300 Mon Sep 17 00:00:00 2001 From: Rainer Kuemmerle Date: Sun, 21 Sep 2014 17:32:54 +0200 Subject: [PATCH] config.h fix only inlcude C++ header if compiling C++ code --- config.h.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.h.in b/config.h.in index 83713aa0..093a4993 100644 --- a/config.h.in +++ b/config.h.in @@ -14,6 +14,8 @@ #cmakedefine G2O_CXX_COMPILER "@G2O_CXX_COMPILER@" +#ifdef __cplusplus #include +#endif #endif