diff --git a/Sample/Material/Material.h b/Sample/Material/Material.h
index 063576b40d46da989c16c7f179804594c993ab59..61e3bcf8fdf588aeb87f86065c0c6c49ba04a458 100644
--- a/Sample/Material/Material.h
+++ b/Sample/Material/Material.h
@@ -70,7 +70,7 @@ public:
 #ifndef SWIG
     //! Returns the type of underlying material implementation
     MATERIAL_TYPES typeID() const;
-#endif // USER_API
+#endif // SWIG
 
     //! Get the magnetization (in A/m)
     R3 magnetization() const;