[MPlayer-dev-eng] [PATCH] Fix libdvdcss on OS/2

Dave Yeo dave.r.yeo at gmail.com
Tue Jan 22 08:47:56 CET 2013


r35807 seems to have broke compilation on OS/2 due to OS/2 having 
direct.h and it being unconditionally checked for.
One possible fix,

Index: libdvdcss.c
===================================================================
--- libdvdcss.c (revision 35820)
+++ libdvdcss.c (working copy)
@@ -238,7 +238,7 @@
       */
      if( psz_cache == NULL || psz_cache[0] == '\0' )
      {
-#if HAVE_DIRECT_H
+#if defined (HAVE_DIRECT_H) && defined (HAVE_WIN_H)
          typedef HRESULT( WINAPI *SHGETFOLDERPATH )
                         ( HWND, int, HANDLE, DWORD, LPTSTR );

Dave


More information about the MPlayer-dev-eng mailing list