diff --git a/Base/Pixel/SphericalPixel.h b/Base/Pixel/SphericalPixel.h
index 4462df9c0df9ae77409741052857ae9d927ae34a..cde289a3782d3ec9907f214f7da531858b3a246d 100644
--- a/Base/Pixel/SphericalPixel.h
+++ b/Base/Pixel/SphericalPixel.h
@@ -22,7 +22,7 @@
 
 #include "Base/Pixel/IPixel.h"
 
-struct Bin1D;
+class Bin1D;
 
 //! A pixel in a SphericalDetector
 
diff --git a/Device/Mask/IShape2D.h b/Device/Mask/IShape2D.h
index 486e9c16823e01bd52610e2fe9a1c0d4adbe5f97..91180b6169cecf9dd6fd122760c6485a03fdb42a 100644
--- a/Device/Mask/IShape2D.h
+++ b/Device/Mask/IShape2D.h
@@ -18,7 +18,7 @@
 #include "Base/Types/ICloneable.h"
 #include <iostream>
 
-struct Bin1D;
+class Bin1D;
 
 //! Basic class for all shapes in 2D.
 //! @ingroup tools