Commits

clach04 committed c7a00f1 Draft

Fix compile failures if GTK is missing. E.g. sh configure --without-gtk ; make

Comments (0)

Files changed (2)

 #include <stdio.h>
 #include "netplay.h"
 #include <getopt.h>
+#if defined(GTK)
 #include "gtk_main-server.h"
+#endif
 
 #define DEBUG
 
 void printf_screen (char* format, ...)
 {
   char buf[256];
+    /*
   GtkTextView* textview_status = NULL;
-
+*/
   va_list ap;
   va_start (ap, format);
   vsprintf (buf, format, ap);
 
 #endif
 
+#if defined(GTK)
 	if (gtk_stop_asked)
 	{
 		break;
 	}
+#endif
 
       if (number_ready_socket == -1)
 	{
 	
 	}
 
+#if defined(GTK)
 	if (!gtk_stop_asked)
 	{
 
       break;
     }
   } // gtk_stop_asked
+#endif
+
       
   /*
    * Free resources
 extern UChar language;
 // the current language
 
-extern int BaseClock, UPeriod;
+/*
+** extern int BaseClock, UPeriod;
+*/
+extern int UPeriod;
 
 extern UChar US_encoded_card;
 // Do we have to swap even and odd bytes in the rom