File fix-multiple-defs.patch of Package xpexeso

diff -Nur xpexeso/base.c new/base.c
--- xpexeso/base.c	1999-09-05 10:22:31.000000000 +0200
+++ new/base.c	2021-04-16 06:52:52.444694502 +0200
@@ -12,10 +12,7 @@
 #include <stdlib.h>
 #include <time.h>
 
-struct MEMPAIR {
-  int poloha, hodnota ;
-} MEMPAIR;            /* pole pro pamatovane karticky */
-struct MEMPAIR mem[MAXMEM];  
+MEMPAIR mem[MAXMEM];  
 int numM;             /* pocet aktualne pamatovanych karticek */
 
 int stav[MAXPOCETKARET], 
diff -Nur xpexeso/config.h new/config.h
--- xpexeso/config.h	1999-07-20 11:36:59.000000000 +0200
+++ new/config.h	2021-04-16 06:57:31.331194334 +0200
@@ -70,5 +70,9 @@
 
 
 
+typedef struct {
+  int poloha, hodnota ;
+} MEMPAIR;            /* pole pro pamatovane karticky */
 
+extern MEMPAIR mem[MAXMEM];
 
diff -Nur xpexeso/xpexeso.c new/xpexeso.c
--- xpexeso/xpexeso.c	1999-09-06 21:09:40.000000000 +0200
+++ new/xpexeso.c	2021-04-16 06:50:35.403463876 +0200
@@ -29,10 +29,6 @@
 /* globalni promenne sdilene s modulem base.c */
 /**********************************************/
 
-struct MEMPAIR {
-  int poloha, hodnota ;
-} MEMPAIR;            /* pole pro pamatovane karticky */
-extern struct MEMPAIR mem[MAXMEM];  
 extern int numM;  
 extern int stav[MAXPOCETKARET], hodnota[MAXPOCETKARET];  
 extern int deepM[2], deepH[2], pretimewait, timewait, longtimewait;
openSUSE Build Service is sponsored by