From: Arnaud Giersch Date: Sat, 7 Mar 2020 12:53:18 +0000 (+0100) Subject: Move declaration, and keep #include at th top of the file (sonar). X-Git-Tag: v3.26~772 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/041829772b58bf4169214b99b2ecc71c65e9d49d Move declaration, and keep #include at th top of the file (sonar). --- diff --git a/include/simgrid/forward.h b/include/simgrid/forward.h index dd703e040f..4d450ab9d7 100644 --- a/include/simgrid/forward.h +++ b/include/simgrid/forward.h @@ -8,16 +8,6 @@ #include -typedef enum { - SG_OK, - SG_ERROR_CANCELED, - SG_ERROR_TIMEOUT, - SG_ERROR_HOST, - SG_ERROR_NETWORK, - SG_ERROR_STORAGE, - SG_ERROR_VM -} sg_error_t; - #ifdef __cplusplus #include @@ -303,4 +293,14 @@ typedef long long sg_offset_t; /** Actor's ID, just like the classical processes' have PID in UNIX */ typedef long aid_t; +typedef enum { + SG_OK, + SG_ERROR_CANCELED, + SG_ERROR_TIMEOUT, + SG_ERROR_HOST, + SG_ERROR_NETWORK, + SG_ERROR_STORAGE, + SG_ERROR_VM +} sg_error_t; + #endif /* SIMGRID_TYPES_H */