diff --git a/Marlin/src/lcd/dogm/lcdprint_u8g.cpp b/Marlin/src/lcd/dogm/lcdprint_u8g.cpp
index cb09a146f03..d46eb85903b 100644
--- a/Marlin/src/lcd/dogm/lcdprint_u8g.cpp
+++ b/Marlin/src/lcd/dogm/lcdprint_u8g.cpp
@@ -11,8 +11,7 @@
 
 #if HAS_GRAPHICAL_LCD
 
-#include <U8glib.h>
-extern U8GLIB u8g;
+#include "ultralcd_DOGM.h"
 
 #include "../ultralcd.h"
 #include "../../Marlin.h"