Hi James et. al.,
based on tml's great work on Gimp and GTK, I've ported DIA
to Windoze in almost one weekend.
There are only small changes in the original sources needed.
The whole patch (including hand written make- and export-files)
consist of an only 22K zip file.
Most of the work were missing includes, which I expect to be
needed on Linux, too; if you would use the same warning as
error level.
Were appicable I've replaced the some functions with their
glib counter part (e.g.: snprintf -> g_snprintf)
There are only two windoze specific changes:
- an additional indirection is needed to access DIA's directories.
On Unix it simply maps to the respective compile time definitions.
On Win32 it determines the dia executable directory at runtime and
maps the sub-directories relative to it (see dia_dirs.[c|h]).
- the color variables (color_black, gdk_color_black, ...) in
lib/color.h need to be exported explicitly when compiling
libdia.dll and to be imported from the other modules to get
initialized properly.
Is this patch and the availibility of DIA on Win32 interesting
enough to be applied to CVS?
Attached are only the changes to existing source files. If
you are interested to get the whole thing, get the patch from:
http://hans.breuer.org/dia/dia-2000-02-05-hb.zip
There is a web page about dia on Win32, too:
http://hans.breuer.org/dia
Best Regards,
Hans
dia-2000-02-05-hb.diff.zip
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert