/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/python-compat.h

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-26 04:27:28 UTC
  • mfrom: (3696.4.20 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080926042728-8dzaiolv2q1duutw
(robertc) Create a pyrex optimised iter_changes for dirstate trees.
        (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    #define PyInt_AsSsize_t(o) PyInt_AsLong(o)
35
35
#endif
36
36
 
 
37
#if defined(_WIN32) || defined(WIN32)
 
38
    /* Needed for htonl */
 
39
    #include "Winsock.h"
 
40
 
 
41
    /* Defining WIN32_LEAN_AND_MEAN makes including windows quite a bit
 
42
     * lighter weight.
 
43
     */
 
44
    #define WIN32_LEAN_AND_MEAN
 
45
    #include <windows.h>
 
46
 
 
47
    /* sys/stat.h doesn't have S_ISLNK on win32, so we fake it by just always
 
48
     * returning False
 
49
     */
 
50
    #define S_ISLNK(mode) (0)
 
51
#else /* Not win32 */
 
52
    /* For htonl */
 
53
    #include "arpa/inet.h"
37
54
#endif
 
55
 
 
56
 
 
57
#endif /* _BZR_PYTHON_COMPAT_H */