progname, res_name and res_class are X11-specific

This commit is contained in:
Gwenhael Le Moine 2023-05-09 14:41:17 +02:00
parent 2f52760345
commit a95337ef81
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 4 additions and 2 deletions

View file

@ -14,9 +14,11 @@
#include "resources.h"
#include "x48.h"
#if defined( GUI_IS_X11 )
char* progname;
char* res_name;
char* res_class;
#endif
int saved_argc;
char** saved_argv;
@ -47,6 +49,7 @@ int main( int argc, char** argv ) {
setlocale( LC_ALL, "C" );
#if defined( GUI_IS_X11 )
/*
* Get the name we are called.
*/
@ -56,7 +59,6 @@ int main( int argc, char** argv ) {
else
progname++;
#if defined( GUI_IS_X11 )
/*
* save command line options
*/

View file

@ -26,11 +26,11 @@ extern char romFileName[];
extern char homeDirectory[];
#endif
#if defined( GUI_IS_X11 )
extern char* progname;
extern char* res_name;
extern char* res_class;
#if defined( GUI_IS_X11 )
extern XrmDatabase rdb;
extern void usage( void );