Always use C linkage, prevent accidental name mangling.
#include <stdint.h>
#include <string.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#undef ev_init
#undef ev_set_cb
#undef ev_set_priority
#undef __uv_container_of
#undef __uv_warn_of
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NODE_EV_EMUL_H_ */
int argc,
v8::Handle<v8::Value> argv[]);
+} // namespace node
+
#if !defined(NODE_WANT_INTERNALS) && !defined(_WIN32)
# include "ev-emul.h"
# include "eio-emul.h"
#endif
-} // namespace node
#endif // SRC_NODE_H_