diff --git a/opal/mca/event/libevent207/libevent/include/event2/event.h b/opal/mca/event/libevent207/libevent/include/event2/event.h index 5f90e882d3..405ba88b65 100644 --- a/opal/mca/event/libevent207/libevent/include/event2/event.h +++ b/opal/mca/event/libevent207/libevent/include/event2/event.h @@ -45,7 +45,9 @@ extern "C" { #include #endif #ifndef WIN32 -#include +# if !(defined(c_plusplus) || defined(__cplusplus)) +# include +# endif #endif #include diff --git a/opal/mca/event/libevent207/libevent207.h b/opal/mca/event/libevent207/libevent207.h index 63933ba758..23774fabff 100644 --- a/opal/mca/event/libevent207/libevent207.h +++ b/opal/mca/event/libevent207/libevent207.h @@ -42,9 +42,6 @@ #include #include #include -#ifndef WIN32 -#include -#endif #include "opal/class/opal_object.h" #include "opal/threads/mutex.h"