From 58ea41e6eaffe2381aac9c717969754792921127 Mon Sep 17 00:00:00 2001 From: cherierm Date: Mon, 22 Oct 2007 09:29:37 +0000 Subject: [PATCH] This change exports the gras_procdata pointer and use the Win32 function GetCurrentProcessId() instead the function GetCurrentProcess() to get the process identifier git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4845 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/gras/Virtu/rl_process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gras/Virtu/rl_process.c b/src/gras/Virtu/rl_process.c index 4f542afe29..c3a2920760 100644 --- a/src/gras/Virtu/rl_process.c +++ b/src/gras/Virtu/rl_process.c @@ -13,7 +13,7 @@ /* globals */ static gras_procdata_t *_gras_procdata = NULL; -XBT_EXPORT_NO_IMPORT(char const *) _gras_procname = NULL; +XBT_PUBLIC_DATA(char const *) _gras_procname = NULL; void gras_process_init() { _gras_procdata=xbt_new0(gras_procdata_t,1); @@ -31,7 +31,7 @@ const char *xbt_procname(void) { int gras_os_getpid(void) { #ifdef _WIN32 - return (long int) GetCurrentProcess(); + return (long int) GetCurrentProcessId(); #else return (long int) getpid(); #endif -- 2.20.1