diff --git a/Base/Vector/WavevectorInfo.h b/Base/Vector/WavevectorInfo.h
index 59fa7b48ce5fc9d1020b37099ca955a729119275..ad2f6f22a63194fe833343a422d30125bf7fb048 100644
--- a/Base/Vector/WavevectorInfo.h
+++ b/Base/Vector/WavevectorInfo.h
@@ -12,6 +12,10 @@
 //
 //  ************************************************************************************************
 
+#ifdef SWIG
+#error no need to expose this header to Swig
+#endif
+
 #ifndef USER_API
 #ifndef BORNAGAIN_BASE_VECTOR_WAVEVECTORINFO_H
 #define BORNAGAIN_BASE_VECTOR_WAVEVECTORINFO_H