Commit 2556233e authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent ed7c055d
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>
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment