Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move declaration, and keep #include at th top of the file (sonar).
[simgrid.git] / include / simgrid / forward.h
index dd703e0..4d450ab 100644 (file)
@@ -8,16 +8,6 @@
 
 #include <xbt/base.h>
 
-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 <boost/intrusive_ptr.hpp>
@@ -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 */