diff --git a/clientgui/DlgDiagnosticLogFlags.cpp b/clientgui/DlgDiagnosticLogFlags.cpp
index 2e00855632..71ac25099c 100644
--- a/clientgui/DlgDiagnosticLogFlags.cpp
+++ b/clientgui/DlgDiagnosticLogFlags.cpp
@@ -16,7 +16,7 @@
// along with BOINC. If not, see .
//
#if defined(__GNUG__) && !defined(__APPLE__)
-#pragma implementation "DlgDiagnosticLogFlags.cpp"
+#pragma implementation "DlgDiagnosticLogFlags.h"
#endif
#include "stdwx.h"
diff --git a/clientgui/DlgHiddenColumns.cpp b/clientgui/DlgHiddenColumns.cpp
index 968417e1a6..d633d81673 100644
--- a/clientgui/DlgHiddenColumns.cpp
+++ b/clientgui/DlgHiddenColumns.cpp
@@ -16,7 +16,7 @@
// along with BOINC. If not, see .
//
#if defined(__GNUG__) && !defined(__APPLE__)
-#pragma implementation "DlgHiddenColumns.cpp"
+#pragma implementation "DlgHiddenColumns.h"
#endif
#include "stdwx.h"