1. 16 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      Add G_SQRT2. · b5d790e6
      Tor Lillqvist authored
      	* 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).
      b5d790e6
  2. 21 Jul, 1999 1 commit
    • Tor Lillqvist's avatar
      Update gcc instructions. Remove warning about gettext being GPL, as the · 0aeb6370
      Tor Lillqvist authored
      	* 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.
      0aeb6370
  3. 03 Jul, 1999 1 commit
    • Tor Lillqvist's avatar
      Advice about gcc. · 2815f523
      Tor Lillqvist authored
      	* 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.
      2815f523
  4. 14 Jun, 1999 1 commit
    • Tor Lillqvist's avatar
      Mention using GNU gettext. · 776cd54c
      Tor Lillqvist authored
      	* 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.
      776cd54c
  5. 29 May, 1999 1 commit
    • Tor Lillqvist's avatar
      New file. · 0457d691
      Tor Lillqvist authored
      	* plug-ins/makefile.msc: New file.
      
      	* plug-ins/*/*.c (Well, not really all files, but many):
       	Portability fixes. Include config.h, and guard inclusion of POSIX
       	and Unix headers like <unistd.h>, <dirent.h> and
       	<sys/time.h>. Include <string.h> if functions from it are
       	used. Use g_ntohl() and g_htonl() insteead of ntohl() and htonl(),
       	thus no need to include <netinet/in.h>. Include <io.h> on Win32
       	when using open/read/write (which actually are defined as
       	_open/_read/_write by glib.h). Define S_* macros if necessary on
       	Win32. Define rint() and M_PI if necessary (these definitions
       	should be factored out somewhere, no sense repeating them in lots
       	of files). Open files in binary mode when needed.
      
      	* plug-ins/FractalExplorer/FractalExplorer.c: Use
       	g_malloc()/g_free(). Use g_strdup_printf().
      
        	* plug-ins/dbbrowser/dbbrowser.c: No need to include <X11/Xlib.h>.
      
      	* plug-ins/destripe/destripe.c: Guard use of SIGBUS.
      
      	* plug-ins/{flame/flame,hrz/hrz,pnm/pnm}.c: No need to check for
       	NULL returns from g_malloc() and g_new() as they abort on failure.
      	Use g_strdup_printf().
      
      	* plug-ins/gz/gz.c: Win32 version of running the subprocess.
      
      	* plug-ins/hrz/hrz.c: Win32 version. Use more generic tests for
       	non-Unix (OS/2 and Win32), for instance HAVE_MMAP.
      
      	* plug-ins/script-fu/interp_slib.c: Win32 version of myruntime().
      
      	* plug-ins/script-fu/interp_sliba.c: Handle \\ (escaped backslahsh).
      
      	* plug-ins/script-fu/script-fu-console.c: Bypass on Win32.
      
      	* plug-ins/script-fu/script-fu-scripts.c: Portability fixes. Use
       	g_strdup_printf() instead of separate malloc() and sprintf(). Use
       	g_strescape() for strings being passed to Scheme. Some Win32-only
       	stuff.
      0457d691
  6. 04 May, 1999 1 commit
    • Tor Lillqvist's avatar
      Win32 portability changes: · 1dea4958
      Tor Lillqvist authored
      	* 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.
      1dea4958
  7. 07 Mar, 1999 1 commit