Commit Graph

28 Commits

Author SHA1 Message Date
Tor Lillqvist 565ca6b118 Update, tell people the MSVC makefiles are not up-to-date.
2000-08-24  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Update, tell people the MSVC makefiles are not
	up-to-date.

	* */makefile.msc: Add warning about being outdated.

	* */makefile.cygwin: Remove.

	* */makefile.mingw.in: New files replacing the makefile.cygwin files.

	* */Makefile.am: Change correspondingly.

	* configure.in: Generate corresponding makefile.mingw files.

	* app/about_dialog.c: Include <gdk/gdkconfig.h> for
	GDK_USE_UTF8_MBS. Add UTF-8 version of a string.

	* libgimp/gimp.c: Remove horrible Win32 hack, not needed any longer.

	* plug-ins/common/jpeg.c: Use g_message, not g_warning.

	* plug-ins/common/winclipboard.c
	* plug-ins/common/winprint.c: Remove COMPAT_CRUFT.

	* plug-ins/Lighting/lighing_apply.c: Fix for non-interactive mode
	bug, supplied by Piet van Oostrum.

	* tips/makefile.mingw: New file.

	* tips/Makefile.am: Add it.
2000-08-24 17:53:43 +00:00
Tor Lillqvist 8f3df4ef96 Change Win32 implementation to be a bit simpler. Use minigzip (from zlib)
2000-07-31  Tor Lillqvist  <tml@iki.fi>

	* plug-ins/common/gz.c (load_image,save_image): Change Win32
	implementation to be a bit simpler. Use minigzip (from zlib)
	instead of the full gzip. Intend to include minigzip with the
	(binary) distribution.

	* libgimp/makefile.{cygwin,msc}
	* app/makefile.{cygwin,msc}: Add G_LOG_DOMAIN.

	* app/gimpbrushhose.{c,h}: Really remove these files, as
	Adrian tried on August 23.

	* plug-ins/script-fu/script-fu.c: Enable the script-fu console on
	Win32, too.

	* plug-ins/script-fu/script-fu-console.c: Now with new GLib
	GIOChannel implementaion, compile for Win32, too. Use
	g_io_add_watch instead of gdk_input_add (on Unix, too). The
	callback for g_io_add_watch is passed a GIOChannel, while the
	callback for gdk_input_add is passed a file descriptor. On Win32
	(and possibly other non-Unices) we want GIOChannels, as we must
	use g_io_channel_read to read from file descriptors being
	watched. Works as previously on Unix this way, too.
2000-07-30 23:17:00 +00:00
Tor Lillqvist 0285191fda Test for help_path being non-NULL was wrong way.
2000-06-07  Tor Lillqvist  <tml@iki.fi>

* app/gimphelp.c (gimp_help_netscape): Test for help_path being
non-NULL was wrong way.

* app/preferences_dialog.c (file_pref_cmd_callback): Change
"From X Server" to "From windowing system".

* app/makefile.cygwin: Update according to file name changes.

* libgimp/gimp.def
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}: Update for Mitch's and Sven's
changes.

* plug-ins/libgck/gck/gckcolor.c: Include <glib.h> before
gimpmath.h, so G_PI don't get redefined when glib.h is included
later.

From Hans Breuer, portability fixes for MSVC compilation:

* app/dialog_handler.h: Bypass decalration of exported functions
which are marked with G_MODULE_EXPORT in dialog_handler.c when
compiling that file. Otherwise some compilers will get confused.

* app/dialog_handler.c: Define a test macro for above bypass.

* plug-ins/MapObject/mapobject_apply.c
* plug-ins/MapObject/mapobject_image.c
* plug-ins/MapObject/mapobject_shade.c: Include <string.h>.

* plug-ins/flame/flame.c: Define S_ISREG if needed.

* plug-ins/makefile.{cygwin,msc}: Updates.

* plug-ins/sel2path/global.h: Include <stdlib.h>.

* plug-ins/winsnap/winsnap.c: Include libgimp/gimpui.h.
2000-06-06 21:33:19 +00:00
Tor Lillqvist 2090f17620 Update to match Unix version.
2000-05-29  Tor Lillqvist  <tml@iki.fi>

* gimprc.win32: Update to match Unix version.

* app/gimp.sym: Add dialog_{,un}register.

* app/dialog_handler.c: Include <gmodule.h>, mark above functions
with G_MODULE_EXPORT.

* app/makefile.{msc,cygwin}: Update to match current GLib 1.3.

* libgimp/gimp.def
* libgimp/gimpui.def: Update according to function name changes etc.

* libgimp/makefile.{msc,cygwin}: Update for changed file
names.

* libgimp/makefile.cygwin
* modules/makefile.cygwin: Simplify, use the
../build/win32/make.mingw file.

* plug-ins/common/gz.c (save_image): Somewhat more informative
error message on Win32 when gzip.exe isn't found (most probable
cause of error).

* tips/gimp_tips.txt: Clarify location of personal GIMP directory
on Unix and Windows.
2000-05-28 23:46:16 +00:00
Tor Lillqvist 9be1a769aa Replace "color-cube" by "min-colors".
2000-05-04  Tor Lillqvist  <tml@iki.fi>

* gimprc.win32: Replace "color-cube" by "min-colors".

* */makefile.{cygwin,msc}: Updates. Install to /install/gimp.

* libgimp/gimp.def: Add gimp_min_colors.

* modules/cdisplay_highcontrast.c: Include gimpmath.h instead of
math.h. Use G_PI instead of M_PI.
2000-05-04 18:41:22 +00:00
Tor Lillqvist 2041747fc6 Add gimp_ui_init.
2000-04-23  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimpui.def: Add gimp_ui_init.

* libgimp/makefile.{cygwin,msc} (gimpui_OBJECTS): Add gimpui.

* app/makefile.{cygwin,msc}
* plug-ins/makefile.{cygwin,msc}: New installation directory.

* app/datafiles.c (is_script): Must not g_free() value returned by
g_getenv().

* plug-ins/gdyntext/font_selection.c: Don't include gdkx.h with
GTk+ 1.3.
2000-04-23 20:27:41 +00:00
Tor Lillqvist 70b1e8da72 Correct the info about Win32 mailing lists.
2000-04-10  Tor Lillqvist  <tml@iki.fi>

* README: Correct the info about Win32 mailing lists.

* gimprc.win32: Add perfect-mouse setting.

* libgimp/gimp.h
* app/main.c: Guard against redefinition of _stdcall.

* libgimp/gimpmath.h: Define macros ISNAN and ISINF. On Win32 use
_isnan() and _fpclass() from <float.h>, on other platforms use
isnan() and isinf(). We really should test for isnan and isinf in the
configure script.

* tools/pdbgen/pdb/gimage.pdb
* app/gimage_cmds.c: Include gimpmath.h, use above macros instead
of using the nonportable isnan and isinf.

* app/gdisplay_ops.c: Do use the old gtk_widget_hide/show hack on
Win32.

* libgimp/makefile.cygwin
* libgimp/makefile.msc
* app/makefile.cygwin
* app/makefile.msc
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Updates.

* plug-ins/gfig/gfig.c (plug_in_parse_gfig_path): Simplify warning
message on Win32.  We could use G_DIR_SEPARATOR in the sample
gimprc line, but then we would have to call g_strescape to quote
it, argh. Win32 users use prebuilt versions with a correct gimprc
file anyway.

(create_file_selection): Use g_get_tmp_dir().

(gfig_update_stat_labels): Guard against possibly NULL value from
g_get_home_dir().
2000-04-10 20:47:04 +00:00
Tor Lillqvist ebf05daf38 Include <stdlib.h> for __argc and__argv.
2000-02-24  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimp.h (Win32): Include <stdlib.h> for __argc and__argv.

* libgimp/{gimp,gimpui}.def: Add new entry points.

* libgimp/gimpenv.c (Win32): Make compileable, with no geteuid etc.

* app/makefile.{cygwin,msc}
* libgimp/makefile.{cygwin,msc}: Update object file list.
2000-02-23 22:03:37 +00:00
Tor Lillqvist 970ad834d1 libgimp/gimp.def libgimp/gimpui.def libgimp/makefile.{cygwin,msc}
2000-02-15  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimp.def
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}
* app/makefile.{cygwin,msc}
* plug-ins/makefile.{cygwin,msc}: Updates.

* app/datafiles.c (is_script): New Win32-only function, which
tests if a file's extension matches one of the extensions in the
PATHEXT environment variable (which the cmd.exe command
interpreter also uses). This is to avoid starting applications
associated with any random data file the user might have dropped
in the plug-ins folder, while still supporting plug-ins written in
scripting languages.

* app/gimpparasite.c (gimp_parasiterc_save): (Win32:) Cannot
rename to an existing file.

* plug-ins/Lighting/lighting_image.c
* plug-ins/Lighting/lighting_share.c
* plug-ins/MapObject/mapobject_preview.c
* plug-ins/MapObject/mapobject_shade.c: Use G_PI.

* plug-ins/common/gz.c: #ifdef G_OS_WIN32 was used before its
potential definition via glib.h.

* plug-ins/common/jpeg.c: Also recognize Exif files, which are
typically produced by digital cameras. The usually have a .jpg
file name extension, and would thus already match this plug-in,
but add the magic string just in case. They are loaded just fine
by libjpeg even if they don't have the JFIF signature.

* plug-ins/common/tiff.c: Set TIFF warning and error handler, so
we get to pass libtiff's messages through the normal channels.
2000-02-14 22:44:06 +00:00
Tor Lillqvist 31ee951523 Some clarifications.
2000-01-18  Tor Lillqvist  <tml@iki.fi>

* README.win32: Some clarifications.

* PLUGIN_MAINTAINERS: I maintain psp.

* libgimp/gimp.def
* libgimp/gimpui.def
* libgimp/makefile.cygwin
* libgimp/makefile.msc
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Updates.

* plug-ins/twain/twain.c
* plug-ins/winsnap/winsnap.c
* po-plug-ins/POTFILES.in: i18n.
2000-01-18 20:52:16 +00:00
Tor Lillqvist a075daa211 Add gimpcolorspace object.
2000-01-04  Tor Lillqvist  <tml@iki.fi>

* libgimp/makefile.{cygwin.msc}: Add gimpcolorspace object.

* libgimp/gimp.def: Add functions from it.

Fixes from Hans Breuer:

* app/datafiles.c: redefine the executable flag for Win32
to _S_IREAD, to get _all_ files from the plug-in dirs as
executables (including scripts)

* app/main.c: Win32-specific changes to allow building Gimp as a
console application, with all its benefits (like inheriting the
console), but hide it if the user doesn't want it. Also, if stdout
goes to a console, give the user a chance to read the help or
version messages. (tml: I am not convinced that it is better to
build gimp as a console application, but let's try it this way for
a while.)

* app/makefile.{cygwin,msc}: Build as console application, and
link with shell32 library.

* app/paint_core.c (paint_core_motion): Pass the value of a call
to the function gimage_active_drawable() to the paint_func,
instead of just passing the address of gimage_active_drawable...

(tml: This code is only called when the TOOL_TRACES_ON_WINDOW flag
is on, and only the clone tool sets that, and the clone tool's
paint_func doesn't use the drawable argument, so this hasn't
caused any trouble.)

* app/plug_in.c: On Win32, to support scripts, use new function
xspawn() instead of _spawnv. Add some more code to properly kill
plug-ins.

* libgimp/color_display.h: Add G_MODULE_EXPORT declarations.
2000-01-04 17:46:41 +00:00
Tor Lillqvist b48c534756 Some clarifications.
2000-01-02  Tor Lillqvist  <tml@iki.fi>

* README.win32: Some clarifications.

* app/makefile.{cygwin,msc}
* libgimp/makefile.{cygwin,msc}
* plug-ins/makefile.{cygwin,msc}: Changes corresponding to the GTk+
source reorg. Add new files.

* app/text_tool.c: Remove now unnecessary workaround for Win32
POINTS identifier clash.
2000-01-02 11:56:56 +00:00
Tor Lillqvist fa354890cc Include config.h for ENABLE_NLS.
1999-11-14  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimpexport.c: Include config.h for ENABLE_NLS.

* libgimp/makefile.{cygwin,msc}: Add gimpselection.

* libgimp/gimp.def: Add its entry points.

* plug-ins/makefile.{cygwin,msc}: Remove rotators.
1999-11-14 02:08:07 +00:00
Tor Lillqvist 5c614c4205 Must call gimp_set_remove_handler() to remove the browser_info_update
1999-11-09  Tor Lillqvist  <tml@iki.fi>

* app/module_db.c (browser_destroy_callback): Must call
gimp_set_remove_handler() to remove the browser_info_update
handler from the GimpSet 'modules'.

Otherwise if we bring up the module browser, then close it, this
will call browser_destroy_callback(), which will free the
'browser_st' struct. Later when we exit the GIMP, the modules will
be unloaded, which will cause browser_info_update() to be called,
and passed the pointer to the already freed 'browser_st'. Whoopee.
Thanks to Electric Fence for pointing this out.

* app/makefile.{cygwin,msc}: Remove actionarea.

* libgimp/gimp.h: Change declaration of nonexistent function
gimp_layer_attach_new_parasite() to declaration of
gimp_drawable_attach_new_parasite(), which was missing.

* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}: Add gimpcolorbutton.

* plug-ins/makefile.{cygwin,msc}: Add gap_filter and gap_plugins.

* plug-ins/common/gz.c: Fix renamed variable in Win32 part.

* plug-ins/gap/gap_lib.c: Use G_DIR_SEPARATOR_S.

* plug-ins/gdyntext/font_selection.c: When compiling with current
CVS GTk+ (i.e., on Win32 most likely) use the gdk_font_list_*
functions instead of Xlib's XListFonts() and XFreeFontNames().

* plug-ins/gdyntext/gdyntext.c: Use G_PI.

* plug-ins/gdyntext/gdyntext_ui.c: Guard inclusion of
unistd.h. Don't unnecessarily include gdkx.h and Xlib.h

* plug-ins/winsnap/winsnap.c: Fix rectangle orientation.
1999-11-09 23:01:31 +00:00
Tor Lillqvist 61e9a437db Fix the file_gih_save RUN_WITH_LAST_VALS case, initialise pixpipe
1999-10-06  Tor Lillqvist  <tml@iki.fi>

* plug-ins/common/gpb.c: Fix the file_gih_save RUN_WITH_LAST_VALS
case, initialise pixpipe parameters from the parasite (Hi, Adrian!).

* plug-ins/script-fu/interp_slib.c: Fix preprocessor syntax error.

* app/makefile.{cygwin,msc} libgimp/makefile.{cygwin,msc}: Add new
object files.

* libgimp/gimp.def libgimp/gimpui.def: Add new entry points.

* modules/makefile.{cygwin,msc}: Add -I path to the common gdk
directory.
1999-10-06 06:36:46 +00:00
Tor Lillqvist d28bd8b689 Change the GDK_WINDOWING_* stuff to be buildable with current CVS gtk+
1999-10-03  Tor Lillqvist  <tml@iki.fi>

* app/cursorutil.h app/session.c app/text_tool.c: Change the
GDK_WINDOWING_* stuff to be buildable with current CVS gtk+ (not
recommended for X11, but necessary for Win32).

* libgimp/gimp.c: Undef RGB from <windows.h> on Win32.

* app/makefile.{cygwin,msc} libgimp/makefile.{cygwin,msc} *
plug-ins/makefile.{cygwin,msc}: Add new files. Small changes for
current gtk+.

* plug-ins/common/animationplay.c: Win32 kludges.
1999-10-03 00:43:05 +00:00
Tor Lillqvist 5475ff08a9 New files. Types and functions related to "standard" parasite types. Used
1999-09-02  Tor Lillqvist  <tml@iki.fi>

* libgimp/parasiteio.[ch]: New files. Types and functions related
to "standard" parasite types. Used for the
gimp-brush-pipe-parameters parasite that the gpb and psp plug-ins
handle, and the value of which is stored in gih files, from
which gimpbrushpipe.c parses it.

* libgimp/{Makefile.am,makefile.{cygwin,msc}}: Add new files.

* libgimp/gimp.def: Add its entry points.

* libgimp/gimp.h: Fix cosmetic argument name error.

* app/gimpbrushpipe.c: Remove code that previously
was copied here, use functions from parasiteio.c.

* plug-ins/common/gpb.c: Ditto. Add brush cell width and height
fields to the gih save dialog. Add cleverness to update rows and
columns as cell size is changes. (Still too easy for the user to
get confused, though.) Display corresponding guide grid on the
image. Unfortunately updating the guidelines doesn't seem to work.

* plug-ins/common/psp.c: Use functions from parasiteio.c.
1999-09-02 00:01:41 +00:00
Tor Lillqvist 868bdfff44 Overhaul of pixmap brushes and pipes: No separate pixmap pipe
brush tool any longer. The paintbrush, airbrush and pencil
tools, which already knew how to handle the single-pixmap
brushes now also handle the pipes as well.

* app/pixmapbrush.{h,c}
* app/gimpbrushpixmap.{h,c}: Removed these files.

* app/Makefile.am
* app/makefile.{cygwin,msc}: Remove from here, too.

* app/gimpbrushpipe.{h,c}: Total overhaul.

* app/paint_core.h
* app/apptypes.h: Some more types moved to apptypes.h

* app/context_manager.c
* app/tool_options.c
* app/tools.c
* app/toolsF.h: Remove PIXMAPBRUSH tool.

* app/gimpbrush.h: New method: select_brush. Used to change the
brush in paint_core, for pipe brushes.

* app/gimpbrush.c: Add gimp_brush_select_brush, which is dummy for
the normal brushes (returns the same brush).

* app/paint_core.c: Call the brush's select_brush method to get a
potential new brush before calling the paint_func.

* app/gimpbrushlist.c: Various changes related to the pixmap and
pipe overhaul.

* app/airbrush.c
* app/pencil.c: Reorder code a bit in the tool motion function to
avoid executing unnecessary code in the case of a pixmap brush.

Other changes in the same commit:

* app/install.c: Make quote_spaces extern.

* app/appenv.h: Declare it.

* libgimp/gimpui.def: Add missing entry points.

* libgimp/makefile.{cygwin,msc}: Add missing objects to gimpui.
1999-08-26 00:54:30 +00:00
Tor Lillqvist b5d790e67e Add G_SQRT2.
* app/appenv.h: Add G_SQRT2.

	* app/iscissors.c: Use it.

	* app/makefile.{cygwin,msc}: Add new files.

	* */makefile.{cygwin,msc}: Use libintl extracted from glibc from a
	separate directory, not from gettext, because of licensing issues
	(we want to use the LGPL version in GTk+, so use it here, too).
1999-08-16 04:59:48 +00:00
Tor Lillqvist 0aeb637088 Update gcc instructions. Remove warning about gettext being GPL, as the
* README.win32: Update gcc instructions. Remove warning about
 	gettext being GPL, as the GIMP is GPL, too, of course, and it
 	thus doesn't matter.

	* user_install.bat: Rename the template user gtkrc to gtkrc_user,
 	to reduce user confusion.

	* app/main.c: Small change for gcc on Win32 compilation.

	* */makefile.cygwin
	* app/module_db.c: With newest gcc-2.95 -fnative-struct on Win32,
 	no need to have differently named DLLs (including modules) for
 	(built by) gcc and MSVC.

	* app/module_db.c: Use g_strdup_printf() instead of
 	strlen(), g_malloc() and g_snprintf()

	* libgimp/Makefile.am: No need to distribute gimpfeatures.h.win32,
 	the suitable gimpfeatures.h is built when making the dist.

	* libgimp/gimpfeatures.h.win32: Removed.

	* libgimp/makefile.cygwin
	* libgimp/makefile.msc: Remove gimpfeatures.h.win32.

	* libgimp/gimp.h: Win32 startup code changed a bit.

	* plug-ins/makefile.cygwin
	* plug-ins/makefile.msc: Add the winsnap unofficial plug-in.

	* plug-ins/common/animationplay.c
	* plug-ins/common/gz.c: (Win32) Hack aroung WinMain getting
	clashing declarations because these guys include gdkx.h (which
	includes windows.h), and gimp.h also declares WinMain on its own.
1999-07-21 19:52:20 +00:00
Tor Lillqvist 2815f523e9 Advice about gcc.
* README.win32: Advice about gcc.

	* libgimp/gimp.{c,h,def}: New way to get address of PLUG_IN_INFO
 	to the gimp dll, similar as used by the EMX port. Much cleaner.
	Works well with gcc also now.

	* app/gimprc.c: Remove gratuituous printf.

	* app/makefile.msc: Update with new files.

	* plug-ins/makefile.msc: Small updates.

	* plug-ins/makefile.cygwin: New file.

	* plug-ins/gfig/gfig.c
	* plug-ins/script-fu/script-fu-scripts.c: Include <glib.h> early.
1999-07-03 02:27:32 +00:00
Tor Lillqvist ef9bef7d25 Use the DEBUG nmake variable to determine whether to build for debugging
* */makefile.msc: Use the DEBUG nmake variable to determine
	whether to build for debugging or not.

	* libgimp/gimp.def: Add some missing entry points.

	* plug-ins/makefile.msc: Redo as to Yosh's reorg of the
 	sources. Add some plug-ins missing earlier. (For instance print,
 	which only prints to files on Win32. We still need a real Win32
 	print plug-in. Much code probably could be lifted from the bmp
 	plug-in.)

	* plug-ins/MapObject/arcball.c: Change Qt_ToMatrix() to void,
 	instead of returning the address of its parameter (dubious
 	practise), as its value is never used anyway.

	For the following changes, thanks to Hans Breuer:

	* plug-ins/FractalExplorer/Dialogs.h: Check for feof, not to get
	into an endless loop on malformed files.

	* plug-ins/common/header.c: Support indexed images.

	* plug-ins/common/sunras.c
	* plug-ins/common/xwd.c
	* plug-ins/print/print.h
	* plug-ins/sgi/sgi.h: Include config.h, guard inclusion of
 	unistd.h.

	* plug-ins/print/print.c: Guard for SIGBUS being undefined. Open
 	output file in binary mode.

	* po/makefile.msc: Add no.
1999-06-28 17:54:19 +00:00
Tor Lillqvist 12938f1b6f Update version.
* libgimp/gimpfeatures.h.win32: Update version.

	* app/file_new_dialog.c: Include gimpcontext.h.

	* app/gdisplay.c: Don't pass a pointer as an int parameter,
	pass the result of an inequality comparison to zero.

	* app/makefile.msc: Add new files.

	* plug-ins/makefile.msc: Build the ps plug-in, too.

	* plug-ins/ps/ps.c: Add code to use a "real" output file, not a
 	pipe (needed with Win32 port of ghostscript).

	Use g_strdup_printf() instead of separate g_malloc() and sprintf()
 	calls. No need to check failure of g_malloc(), it aborts on
 	failure. Open files in binary mode.

	(Win32:) Use indirect command line file to guard for too long
 	command line. (Not sure if this is really needed.) Use the
 	gswin32c program.
1999-06-21 00:23:55 +00:00
Tor Lillqvist 776cd54ca9 Mention using GNU gettext.
* README.win32: Mention using GNU gettext.

	* config.h.win32: Enable NLS stuff. Remove the X11 & Unix vs. Win32
	feature test macros, we use those from glibconfig.h and gdkconfig.h.

	* app/makefile.msc: Use gettext. New object files.

	* app/batch.c: No need to include <io.h> on Win32.

	* app/errorconsole.c
	* app/plug_in.c
	* app/tile_swap.c: Include <glib.h> early to get Win32 feature
	test macros from <glibconfig.h>.

	* app/gimpset.c: Remove unnecessary (?) warning.

	* app/main.c
	* libgimp/stdplugins-intl.h: If no LOCALEDIR defined
	(as on Win32), use the "locale" subdir in gimp_data_directory().

	* app/palette.c: Open palette file in text mode.

	* app/session.c
	* app/text_tool.c: Use GDK's GDK_WINDOWING feature test macro
	if available, not WINDOWS_DISPLAY.

	* libgimp/gimpfeatures.h.win32: Correct GIMP_VERSION.

	* libgimp/makefile.msc: Use gettext.

	* plug-ins/makefile.msc: Use gettext. Add some missing
 	plug-ins. Advice how to build "unofficial" plug-ins.

	* plug-ins/FractalExplorer/FractalExplorer.c
	* plug-ins/faxg3/faxg3.c
	* plug-ins/gbr/gbr.c
	* plug-ins/gz/gz.c: Include <glib.h> early.

	* plug-ins/tga/tga.c: Include config.h, use HAVE_UNISTD_H.
1999-06-14 22:18:02 +00:00
Tor Lillqvist b6021023ee No need for <io.h> on Win32.
* libgimp/gimp.c: No need for <io.h> on Win32.

	* libgimp/{gimp,gimpui}.def: Add two entry points.

	* libgimp/gimp.h: Can't use __declspec(dllexport) for PLUG_IN_INFO
	when compiling with gcc on Win32. Also handle __argc, __argv and
	_stdcall differently with gcc on Win32

	* libgimp/gimpenv.c: Include <string.h>.

	* libgimp/gimpfeatures.h.in: Remove lots of extraneous trailing blanks.

	* libgimp/gimpfileselection.c: Include <glib.h> early, see above.

	* libgimp/{gimpwire,parasite}.c: Test for NATIVE_WIN32, not
	_MSC_VER.

	* libgimp/makefile.msc: Miscellaneous updates. The gimpi library
 	is now built as a static library.
1999-05-28 21:56:04 +00:00
Tor Lillqvist 1dea4958bb Win32 portability changes:
* config.h.win32, README.win32: Small changes.

	* tools/pdbgen/pdb/*.pdb: Include <string.h>.

	* app/*_cmds.c: Autogenerated files reflect above changes.

	* libgimp/makefile.msc app/makefile.msc: Various updates,
 	including new object files. Gtk+ directory now should be called
 	gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
 	now should be called just glib.

	* libgimp/gimp.def: Updates.

	* libgimp/gimpfeatures.h.win32: Made current with
 	gimpfeatures.h.in.

	* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
 	necessary.

	* tools/pdbgen/pdb/fileops.pdb: Must have a
 	statement (even an empty one) after a label.

	* app/fileops_cmds.c: Autogenerated file reflects above changes.

	* app/crop.c: Include <string.h>.

	* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
 	plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
 	_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
 	runtime, even if we might be compiling with gcc.)

	* app/fileops.c: Don't include <process.h> here.

	* app/fileops.h: Do include <process.h> here.

	* app/gimpparasite.c: Include config.h, guard inclusion of
 	<unistd.h>. (Is the inclusion of unistd.h in source files all over
 	the place really necessary?)

	* app/ink.c: MSC doesn't handle conversion from unsigned __int64
 	to double, so cast to signed.

	* app/lut_funcs.c: Include config.h, and define rint() if necessary.

	* app/pixel_processor.c: Include config.h without "..", like in
 	all the other places. Include <string.h>

	* app/text_tool.c: Guard the "POINTS" identifier that clashes with
 	<windows.h>, sigh.
1999-05-04 21:32:17 +00:00
Tor Lillqvist 9843e97f72 Stuff I forgot, and some further changes to gimprc.c 1999-03-07 16:24:44 +00:00
Tor Lillqvist 951c92a602 Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00