[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pdomain for MagiC 4



Due to the support of the Pdomain call in MagiC 4, I suggest the following changes
in main.c of the mintlib:

--- main.c.orig	Fri Nov 10 09:37:13 1995
+++ main.c	Fri Nov 10 09:48:41 1995
@@ -17,6 +17,7 @@
 
 int	errno;
 int	__mint;		/* 0 for TOS, MiNT version number otherwise */
+int	_pdomain;       /* errorcode of Pdomain call */
 
 char	_rootdir;	/* user's preferred root directory */
 
@@ -103,8 +104,7 @@
  * check for MiNT
  */
 	(void)Supexec(getMiNT);
-	if (__mint && _app)
-		(void)Pdomain(1);	/* set MiNT domain */
+	_pdomain = Pdomain(1);	/* set MiNT domain */
 
 /*
  * initialize UNIXMODE stuff. Note that this library supports only

I thing, this should not lead to any incompatibilities !

Dirk