diff --git a/Examples/Projections/otbProjectionsExamplesTests2.cxx b/Examples/Projections/otbProjectionsExamplesTests2.cxx
index 7da2d70dde0234ac7504776e3ba02de8bc15be1d..0aff3c4fdf8a197087e78d1e8d5d8a32760e0970 100644
--- a/Examples/Projections/otbProjectionsExamplesTests2.cxx
+++ b/Examples/Projections/otbProjectionsExamplesTests2.cxx
@@ -34,5 +34,7 @@ void RegisterTests()
 #undef main
 #define main PlaceNameToLonLatExampleTest
 #include "PlaceNameToLonLatExample.cxx"
+
+#undef main
 #define main CoordinateToNameExampleTest
-#include "CoordinateToNameExample.cxx"
\ No newline at end of file
+#include "CoordinateToNameExample.cxx"