[119992] trunk/base/src/pextlib1.0

cal at macports.org cal at macports.org
Mon May 12 10:52:44 PDT 2014


Revision: 119992
          https://trac.macports.org/changeset/119992
Author:   cal at macports.org
Date:     2014-05-12 10:52:44 -0700 (Mon, 12 May 2014)
Log Message:
-----------
base: pextlib1.0: Use #ifdef/#ifndef rather than #if !HAVE_SETMODE/#if HAVE_SETMODE

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/Pextlib.c
    trunk/base/src/pextlib1.0/setmode.c
    trunk/base/src/pextlib1.0/xinstall.c

Modified: trunk/base/src/pextlib1.0/Pextlib.c
===================================================================
--- trunk/base/src/pextlib1.0/Pextlib.c	2014-05-12 17:45:19 UTC (rev 119991)
+++ trunk/base/src/pextlib1.0/Pextlib.c	2014-05-12 17:52:44 UTC (rev 119992)
@@ -94,7 +94,7 @@
 extern char **environ;
 #endif
 
-#if !HAVE_SETMODE
+#ifndef HAVE_SETMODE
 #include "setmode.h"
 #endif
 

Modified: trunk/base/src/pextlib1.0/setmode.c
===================================================================
--- trunk/base/src/pextlib1.0/setmode.c	2014-05-12 17:45:19 UTC (rev 119991)
+++ trunk/base/src/pextlib1.0/setmode.c	2014-05-12 17:52:44 UTC (rev 119992)
@@ -36,10 +36,8 @@
 
 #include <config.h>
 
-extern int xxx_so_this_isnt_empty;
+#ifndef HAVE_SETMODE
 
-#if !HAVE_SETMODE
-
 #if defined(LIBC_SCCS) && !defined(lint)
 #if 0
 static char sccsid[] = "@(#)setmode.c	8.2 (Berkeley) 3/25/94";
@@ -479,5 +477,8 @@
 		}
 	}
 }
-#endif
+#else /* !defined(HAVE_SETMODE) */
 
+extern int xxx_so_this_isnt_empty;
+
+#endif /* !defined(HAVE_SETMODE) */

Modified: trunk/base/src/pextlib1.0/xinstall.c
===================================================================
--- trunk/base/src/pextlib1.0/xinstall.c	2014-05-12 17:45:19 UTC (rev 119991)
+++ trunk/base/src/pextlib1.0/xinstall.c	2014-05-12 17:52:44 UTC (rev 119992)
@@ -104,7 +104,7 @@
 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
 #endif
 
-#if !HAVE_SETMODE
+#ifndef HAVE_SETMODE
 #include "setmode.h"
 #endif
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140512/49c1d06c/attachment.html>


More information about the macports-changes mailing list