[vlc-commits] upnp: Fix windows build
Hugo Beauzée-Luyssen
git at videolan.org
Fri Jun 29 14:14:30 CEST 2018
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jun 29 14:14:13 2018 +0200| [7f51eb6cffbc9347d6410bfbc1b7a65fe351650b] | committer: Hugo Beauzée-Luyssen
upnp: Fix windows build
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f51eb6cffbc9347d6410bfbc1b7a65fe351650b
---
modules/services_discovery/upnp-wrapper.cpp | 5 +++++
modules/services_discovery/upnp.hpp | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/modules/services_discovery/upnp-wrapper.cpp b/modules/services_discovery/upnp-wrapper.cpp
index d5fa2b1857..52c942cb3d 100644
--- a/modules/services_discovery/upnp-wrapper.cpp
+++ b/modules/services_discovery/upnp-wrapper.cpp
@@ -30,6 +30,11 @@
#include <vlc_common.h>
+#ifdef _WIN32
+#include <windows.h>
+#include <wincrypt.h>
+#endif
+
#include "upnp-wrapper.hpp"
UpnpInstanceWrapper* UpnpInstanceWrapper::s_instance;
diff --git a/modules/services_discovery/upnp.hpp b/modules/services_discovery/upnp.hpp
index 3ff63e8867..3e6a1bc585 100644
--- a/modules/services_discovery/upnp.hpp
+++ b/modules/services_discovery/upnp.hpp
@@ -23,7 +23,6 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#include "upnp-wrapper.hpp"
#include <vector>
#include <string>
@@ -33,6 +32,8 @@
#include <wincrypt.h>
#endif
+#include "upnp-wrapper.hpp"
+
#include <vlc_url.h>
namespace SD
More information about the vlc-commits
mailing list