Rev 3793: Use an if \!defined, rather than always assuming they aren't available. in http://bzr.arbash-meinel.com/branches/bzr/1.9-dev/msvc_python24

John Arbash Meinel john at arbash-meinel.com
Tue Oct 21 16:54:08 BST 2008


At http://bzr.arbash-meinel.com/branches/bzr/1.9-dev/msvc_python24

------------------------------------------------------------
revno: 3793
revision-id: john at arbash-meinel.com-20081021155356-t9dalqigtvhu4nxw
parent: john at arbash-meinel.com-20081021155034-7q4jalz0uhojq4la
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: msvc_python24
timestamp: Tue 2008-10-21 10:53:56 -0500
message:
  Use an if \!defined, rather than always assuming they aren't available.
-------------- next part --------------
=== modified file 'bzrlib/python-compat.h'
--- a/bzrlib/python-compat.h	2008-10-21 15:49:29 +0000
+++ b/bzrlib/python-compat.h	2008-10-21 15:53:56 +0000
@@ -59,7 +59,9 @@
     /* sys/stat.h doesn't have S_ISLNK on win32, so we fake it by just always
      * returning False
      */
-    #define S_ISLNK(mode) (0)
+    #if !defined(S_ISLNK)
+        #define S_ISLNK(mode) (0)
+    #endif
 #else /* Not win32 */
     /* For htonl */
     #include "arpa/inet.h"



More information about the bazaar-commits mailing list