~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/python-compat.h

  • Committer: John Arbash Meinel
  • Date: 2008-10-21 15:53:56 UTC
  • mto: This revision was merged to the branch mainline in revision 3792.
  • Revision ID: john@arbash-meinel.com-20081021155356-t9dalqigtvhu4nxw
Use an if \!defined, rather than always assuming they aren't available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    /* sys/stat.h doesn't have S_ISLNK on win32, so we fake it by just always
60
60
     * returning False
61
61
     */
62
 
    #define S_ISLNK(mode) (0)
 
62
    #if !defined(S_ISLNK)
 
63
        #define S_ISLNK(mode) (0)
 
64
    #endif
63
65
#else /* Not win32 */
64
66
    /* For htonl */
65
67
    #include "arpa/inet.h"