diff --git a/Framework/Nexus/src/NexusFileIO.cpp b/Framework/Nexus/src/NexusFileIO.cpp
index 5d83669e9738ddc8c2f85e7ef1f6114696b33950..8f23165d8e306b39cb58f4a000c9146db1b950e2 100644
--- a/Framework/Nexus/src/NexusFileIO.cpp
+++ b/Framework/Nexus/src/NexusFileIO.cpp
@@ -10,7 +10,7 @@
 #include <io.h>
 // Define the MAX_NAME macro for Windows
 // Maximum base file name size on modern windows systems is 260 characters
-#define MAX_NAME 260
+#define NAME_MAX 260
 #endif /* _WIN32 */
 #include "MantidGeometry/Instrument.h"
 #include "MantidKernel/TimeSeriesProperty.h"