From: navarro Date: Tue, 10 Apr 2012 10:24:05 +0000 (+0200) Subject: Fix compilation error with gcc4.4 X-Git-Tag: v3_7~65^2~4^2~14 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6ebcf09b6c37399ca597870339c1c5e60b1f774b?hp=a8f91f4dae8d61a55a6bc1dba242f2a5c326b536;ds=sidebyside Fix compilation error with gcc4.4 error: redefinition of typedef 'surf_stat_t' --- diff --git a/src/simix/smx_private.h b/src/simix/smx_private.h index 28cbd06797..824239f438 100644 --- a/src/simix/smx_private.h +++ b/src/simix/smx_private.h @@ -64,7 +64,7 @@ typedef struct s_smx_file { typedef struct s_smx_stat { s_file_stat_t surf_stat; -} s_smx_stat_t, *smx_stat_t; +} s_smx_stat_t; /*********************************** Time ************************************/ diff --git a/src/surf/storage_private.h b/src/surf/storage_private.h index c5ae4d2fbf..c1b812b7d0 100644 --- a/src/surf/storage_private.h +++ b/src/surf/storage_private.h @@ -23,7 +23,7 @@ typedef struct s_mount { typedef struct surf_stat { /* file status structure */ s_file_stat_t stat; /* possible additionnal fields (e.g., popularity, last access time to know whether the file is in cache, ...) */ -} s_surf_stat_t, *surf_stat_t; +} s_surf_stat_t; typedef struct surf_file { char *name;