mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
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:
parent
ed7c055df6
commit
2556233e5a
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue