removed the local pid_t variable and the msvc definition for it.

2005-04-24  Sven Neumann  <sven@gimp.org>

	* app/base/temp-buf.c (generate_unique_tmp_filename): removed the
	local pid_t variable and the msvc definition for it.
This commit is contained in:
Sven Neumann 2005-04-24 16:09:25 +00:00 committed by Sven Neumann
parent ed7c055df6
commit 2556233e5a
2 changed files with 8 additions and 10 deletions

View file

@ -1,3 +1,8 @@
2005-04-24 Sven Neumann <sven@gimp.org>
* app/base/temp-buf.c (generate_unique_tmp_filename): removed the
local pid_t variable and the msvc definition for it.
2005-04-24 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/fileops.pdb
@ -6,11 +11,11 @@
2005-04-24 Hans Breuer <hans@breuer.org>
* menus/makefile.msc : build menus with nmake, too
menus/Makefile.am : added to EXTRA_DIST
* menus/Makefile.am : added to EXTRA_DIST
* **/makefile.msc app/gimpcore.def : updated
* app/base/tmp-buf.c : there is no pid_t with msvc so typedef one
* app/base/temp-buf.c : there is no pid_t with msvc so typedef one
2005-04-23 Sven Neumann <sven@gimp.org>

View file

@ -32,9 +32,6 @@
#ifdef G_OS_WIN32
#include <process.h> /* For _getpid() */
# ifdef _MSC_VER
typedef int pid_t;
# endif
#endif
#include "libgimpbase/gimpbase.h"
@ -630,18 +627,14 @@ static TempBuf *cached_in_memory = NULL;
static gchar *
generate_unique_tmp_filename (GimpBaseConfig *config)
{
pid_t pid;
gchar *tmpdir;
gchar *tmpfile;
gchar *path;
tmpdir = gimp_config_path_expand (config->temp_path, TRUE, NULL);
pid = getpid ();
tmpfile = g_strdup_printf ("gimp%d.%d",
(gint) pid,
tmp_file_index++);
(gint) getpid (), tmp_file_index++);
path = g_build_filename (tmpdir, tmpfile, NULL);