[AD] dmc unicode patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]

As far as I can tell, DMC's C runtime does not support unicode
filenames. Attached are patches to prevent DMC from trying to call the
unicode routines.

Previously Allegro was defining the IS_OLD_WINDOWS macro at runtime to
true if the version of Windows was older than 2000. The macro was only
being used to detect unicode support. I've replaced the macro with a
new, more descriptive internal variable _al_win_unicode_filenames that
is set at runtime.

* aintern.h: removed IS_OLD_WINDOWS.
* aintwin.h: removed IS_OLD_WINDOWS and added AL_VAR(int,
* wfile.c: replaced IS_OLD_WINDOWS with !_al_win_unicode_filenames
* wsystem.c: sets _al_win_unicode_filenames at runtime. (Hardcoded to

Tested under MinGW and DMC on both Vista and Windows 98.

Matthew Leverton

Attachment: aintern.h.diff
Description: Binary data

Attachment: aintwin.h.diff
Description: Binary data

Attachment: wfile.c.diff
Description: Binary data

Attachment: wsystem.c.diff
Description: Binary data

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/