[vlc-devel] commit: vlc_network: vlc_poll is always exported. Don' t put it behind an ifdef. (Pierre d'Herbemont )
git version control
git at videolan.org
Wed Aug 13 00:54:39 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Aug 13 00:48:35 2008 +0200| [909417ea2806f2c4690bbf291450467f3b925de3] | committer: Pierre d'Herbemont
vlc_network: vlc_poll is always exported. Don't put it behind an ifdef.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=909417ea2806f2c4690bbf291450467f3b925de3
---
include/vlc_network.h | 5 +++--
src/network/poll.c | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/vlc_network.h b/include/vlc_network.h
index 8a2b440..e2200d3 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -180,10 +180,11 @@ struct pollfd
int events;
int revents;
};
-
-VLC_EXPORT (int, vlc_poll, (struct pollfd *fds, unsigned nfds, int timeout));
# define poll(a, b, c) vlc_poll(a, b, c)
#endif
+struct pollfd;
+VLC_EXPORT (int, vlc_poll, (struct pollfd *fds, unsigned nfds, int timeout));
+
#ifdef WIN32
/* Microsoft: same semantic, same value, different name... go figure */
diff --git a/src/network/poll.c b/src/network/poll.c
index d65eccd..f6f9050 100644
--- a/src/network/poll.c
+++ b/src/network/poll.c
@@ -26,6 +26,7 @@
#endif
#include <vlc_common.h>
+#include <vlc_network.h>
#ifdef HAVE_POLL
struct pollfd;
More information about the vlc-devel
mailing list