--- a/libgag/include/StreamBackend.h.old
+++ b/libgag/include/StreamBackend.h
@@ -28,6 +28,9 @@
 #ifdef putc
 #undef putc
 #endif
+#ifdef getc
+#undef getc
+#endif
 
 namespace GAGCore
 {
