[vlc-devel] commit: Qt: fix Win32 compilation (Jean-Baptiste Kempf )

git version control git at videolan.org
Sun Feb 14 23:29:05 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb 14 23:28:37 2010 +0100| [43848e7ed4264df03e599fa0244cd3e526490f18] | committer: Jean-Baptiste Kempf 

Qt: fix Win32 compilation

Mingw, Mingw-w64 and MSVC support towlower

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43848e7ed4264df03e599fa0244cd3e526490f18
---

 modules/gui/qt4/util/customwidgets.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/util/customwidgets.cpp b/modules/gui/qt4/util/customwidgets.cpp
index 5a509d4..a99456d 100644
--- a/modules/gui/qt4/util/customwidgets.cpp
+++ b/modules/gui/qt4/util/customwidgets.cpp
@@ -361,7 +361,7 @@ int qtEventToVLCKey( QKeyEvent *e )
 
     if( qtk <= 0xff )
         /* VLC and X11 use lowercase whereas Qt uses uppercase */
-#ifdef __STDC_ISO_10646__
+#if defined( __STDC_ISO_10646__ ) || defined( _WIN32 )
         i_vlck = towlower( qtk );
 #else
 # error FIXME




More information about the vlc-devel mailing list