fi
VLC_ADD_LDFLAGS([wxwidgets],[`${WX_CONFIG} --libs`])
VLC_ADD_CXXFLAGS([wxwidgets],[`${WX_CONFIG} --cxxflags`])
+ if ${WX_CONFIG} --unicode
+ then
+ # wxwidgets should provide the following flags but does not
+ # the following is required to compile for win32
+ VLC_ADD_CXXFLAGS([wxwidgets],[-D_UNICODE -DUNICODE])
+ fi
if test "$have_libcdio" = "yes"
then
VLC_ADD_LDFLAGS([wxwidgets],[$LIBCDIO_LIBS])
for( char drive_letter = 'A'; drive_letter <= 'Z'; ++drive_letter )
{
char drive_name[3] = {drive_letter, ':', 0};
- UINT type = GetDriveType( drive_name );
+ UINT type = GetDriveTypeA( drive_name );
if( type == DRIVE_CDROM )
{
psz_default_device[0] = drive_letter;