|
@@ -82,6 +82,7 @@ uv_handle_ptr_<T>::operator T*() const
|
|
|
return this->handle.get();
|
|
return this->handle.get();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifdef CMAKE_BUILD_WITH_CMAKE
|
|
|
template <>
|
|
template <>
|
|
|
struct uv_handle_deleter<uv_async_t>
|
|
struct uv_handle_deleter<uv_async_t>
|
|
|
{
|
|
{
|
|
@@ -126,6 +127,7 @@ int uv_async_ptr::init(uv_loop_t& loop, uv_async_cb async_cb, void* data)
|
|
|
allocate(data);
|
|
allocate(data);
|
|
|
return uv_async_init(&loop, handle.get(), async_cb);
|
|
return uv_async_init(&loop, handle.get(), async_cb);
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
template <>
|
|
template <>
|
|
|
struct uv_handle_deleter<uv_signal_t>
|
|
struct uv_handle_deleter<uv_signal_t>
|
|
@@ -169,6 +171,7 @@ uv_pipe_ptr::operator uv_stream_t*() const
|
|
|
return reinterpret_cast<uv_stream_t*>(handle.get());
|
|
return reinterpret_cast<uv_stream_t*>(handle.get());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifdef CMAKE_BUILD_WITH_CMAKE
|
|
|
uv_tty_ptr::operator uv_stream_t*() const
|
|
uv_tty_ptr::operator uv_stream_t*() const
|
|
|
{
|
|
{
|
|
|
return reinterpret_cast<uv_stream_t*>(handle.get());
|
|
return reinterpret_cast<uv_stream_t*>(handle.get());
|
|
@@ -179,6 +182,7 @@ int uv_tty_ptr::init(uv_loop_t& loop, int fd, int readable, void* data)
|
|
|
allocate(data);
|
|
allocate(data);
|
|
|
return uv_tty_init(&loop, *this, fd, readable);
|
|
return uv_tty_init(&loop, *this, fd, readable);
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
template class uv_handle_ptr_base_<uv_handle_t>;
|
|
template class uv_handle_ptr_base_<uv_handle_t>;
|
|
|
|
|
|
|
@@ -186,13 +190,15 @@ template class uv_handle_ptr_base_<uv_handle_t>;
|
|
|
template class uv_handle_ptr_base_<uv_##NAME##_t>; \
|
|
template class uv_handle_ptr_base_<uv_##NAME##_t>; \
|
|
|
template class uv_handle_ptr_<uv_##NAME##_t>;
|
|
template class uv_handle_ptr_<uv_##NAME##_t>;
|
|
|
|
|
|
|
|
-UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(async)
|
|
|
|
|
-
|
|
|
|
|
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(signal)
|
|
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(signal)
|
|
|
|
|
|
|
|
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(pipe)
|
|
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(pipe)
|
|
|
|
|
|
|
|
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(stream)
|
|
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(stream)
|
|
|
|
|
|
|
|
|
|
+#ifdef CMAKE_BUILD_WITH_CMAKE
|
|
|
|
|
+UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(async)
|
|
|
|
|
+
|
|
|
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(tty)
|
|
UV_HANDLE_PTR_INSTANTIATE_EXPLICIT(tty)
|
|
|
|
|
+#endif
|
|
|
}
|
|
}
|