[libdvdcss-devel] [PATCH] Do not include huge "windows.h" in main header, use with single typedef

Evgeny Grin (Karlson2k) karlson2k at kodi.tv
Tue Nov 18 16:46:43 CET 2014


From: Evgeny Grin <karlson2k at kodi.tv>

---
 src/libdvdcss.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/libdvdcss.h b/src/libdvdcss.h
index 5f6cb3e..335640e 100644
--- a/src/libdvdcss.h
+++ b/src/libdvdcss.h
@@ -27,8 +27,7 @@
 #include <limits.h>
 
 #ifdef WIN32
-#    include "config.h"
-#    include <windows.h>
+    typedef void* HANDLE; /* forward declaration */
 #endif
 
 #include "dvdcss/dvdcss.h"
-- 
2.1.0.9738.g8768113



More information about the libdvdcss-devel mailing list