[sword-devel] PocketPC Development -- _WIN32_WCE #ifdef(s) and
other questions
Troy A. Griffitts
sword-devel@crosswire.org
Thu, 17 Jul 2003 01:09:11 -0700
Herb,
If the wince compiler is still so non-standard as to not support our
ANSI/ISO compliant C++ code, then microsoft, like always, still sucks :)
I'd prefer you NOT clutter the code will a million ifdef's. Can you
give me an example? We already added a bunch of stuff to get it to
compile once on the wince compiler. I took much of it out because there
are better ways to handle some of the things that were ifdef'd. Please
give me an example and maybe I can add something for you that will help.
Most of the file io routines should be isolated in the FileMgr class,
so writing your own FileMgr replacement should do the trick. We can
consider moving the read/write/lseek calls to FileMgr methods if this
will help you.
I'm sorry if I don't sound too friendly toward microsoft. We've
already cluttered our code with a number of workarounds for their
non-conformant compiler and it just makes me angry. Nothing personal.
-Troy.
Herb Ledebohm wrote:
> What is the stance on me adding a number of these to the source?
> #ifdef _WIN32_WCE ...or... #ifndef _WIN32_WCE
>
> If you guys prefer that we don't litter up the code with a bunch of
> definition checks like these then I'll need to break out some of the code
> (which I'll have to do for directory/file services, system time, etc.
> anyway) and handle it in the project file.
>
> Comments? Preferences?
>
> Also, I'm leaning towards supporting only PocketPC2002+ since that is the
> toolset I have.
>
> _______________________________________________
> sword-devel mailing list
> sword-devel@crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel