Hello -

  In order to get wine to compile on the ppc processor (under linuxppc),
I needed to work on the resource compiler & byteorder.  I found that the
simplest thing to do was to change the line:

int byteorder = WRC_BO_NATIVE;

in wrc.c to 

int byteorder = WRC_BO_LITTLE;

  I don't fully understand the ramifications of this change, though.  Is
there a general feeling about how resources should be stored on
non-intel architectures?  Why is there so much switching in wrc based on
byteorder?  Does windows regularly use both little and big-endian
resource files, or is this stuff only there to support non-intel
platforms (and allow wrc to cross-compile for big-endian output from a
little-endian machine)?  What this change seems to do is make wrc
generate little-endian resources even on big-endian platforms.  I like
the idea of a single resource file format for all architectures.  Is
there any reason not to use little-endian resources everywhere?


          Thanks - 

                  Josh.


-- 
Josh DuBois
654 SW Grant #103, Portland, OR 97201
503-827-4818
[EMAIL PROTECTED]

Reply via email to