This puts all Directdraw-related code into a compile-time switch 'DIRECTDRAW_DEFINED'. To enable DirectDraw, you need to define this in the snes9xw project file, and add a reference to drraw.lib in it too.
Legacy implementration of dxerr for snes9x only had Unicode support. These changes add NASI support as well.