From 6d8c499e35f7addadf64642c3531a679fa0bd7a2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 7 Jul 2011 22:26:48 -0700 Subject: [PATCH] Don't export the private CPP symbols. --- include/uv.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/include/uv.h b/include/uv.h index b93d243d..6aecb282 100644 --- a/include/uv.h +++ b/include/uv.h @@ -188,7 +188,7 @@ int uv_shutdown(uv_req_t* req); uv_close_cb close_cb; \ void* data; \ /* private */ \ - UV_HANDLE_PRIVATE_FIELDS \ + UV_HANDLE_PRIVATE_FIELDS /* The abstract base class of all handles. */ struct uv_handle_s { @@ -212,7 +212,7 @@ int uv_close(uv_handle_t* handle, uv_close_cb close_cb); /* number of bytes queued for writing */ \ size_t write_queue_size; \ /* private */ \ - UV_STREAM_PRIVATE_FIELDS \ + UV_STREAM_PRIVATE_FIELDS /* The abstract base class for all streams. */ struct uv_stream_s { @@ -488,6 +488,18 @@ typedef struct { uv_counters_t* uv_counters(); + +/* Don't export the private CPP symbols. */ +#undef UV_REQ_PRIVATE_FIELDS +#undef UV_STREAM_PRIVATE_FIELDS +#undef UV_TCP_PRIVATE_FIELDS +#undef UV_PREPARE_PRIVATE_FIELDS +#undef UV_CHECK_PRIVATE_FIELDS +#undef UV_IDLE_PRIVATE_FIELDS +#undef UV_ASYNC_PRIVATE_FIELDS +#undef UV_TIMER_PRIVATE_FIELDS +#undef UV_GETADDRINFO_PRIVATE_FIELDS + #ifdef __cplusplus } #endif