File tree Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,6 @@ typedef size_t size_t;
73
73
# define GIT_FORMAT_PRINTF (a ,b ) /* empty */
74
74
#endif
75
75
76
- /** Defined when building on Windows (but not via cygwin) */
77
- #if (defined(_WIN32 )) && !defined(__CYGWIN__ )
78
- #define GIT_WIN32 1
79
- #endif
80
-
81
76
#ifdef __amigaos4__
82
77
#include <netinet/in.h>
83
78
#endif
@@ -101,10 +96,10 @@ GIT_BEGIN_DECL
101
96
* environment variable). A semi-colon ";" is used on Windows and
102
97
* AmigaOS, and a colon ":" for all other systems.
103
98
*/
104
- #if defined(GIT_WIN32 ) || defined(AMIGA )
105
- #define GIT_PATH_LIST_SEPARATOR ';'
99
+ #if ( defined(_WIN32 ) && !defined( __CYGWIN__ ) ) || defined(AMIGA )
100
+ # define GIT_PATH_LIST_SEPARATOR ';'
106
101
#else
107
- #define GIT_PATH_LIST_SEPARATOR ':'
102
+ # define GIT_PATH_LIST_SEPARATOR ':'
108
103
#endif
109
104
110
105
/**
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ typedef struct git_str git_str;
49
49
# define GIT_WARN_UNUSED_RESULT
50
50
#endif
51
51
52
+ #if (defined(_WIN32 )) && !defined(__CYGWIN__ )
53
+ # define GIT_WIN32 1
54
+ #endif
55
+
52
56
#include <assert.h>
53
57
#include <errno.h>
54
58
#include <limits.h>
Original file line number Diff line number Diff line change 7
7
#ifndef INCLUDE_util_h__
8
8
#define INCLUDE_util_h__
9
9
10
- #ifndef GIT_WIN32
11
- # include <ctype.h>
12
- #endif
13
-
14
10
#include "str.h"
15
11
#include "git2_util.h"
16
12
#include "strnlen.h"
17
13
#include "thread.h"
18
14
15
+ #ifndef GIT_WIN32
16
+ # include <ctype.h>
17
+ #endif
18
+
19
19
#define ARRAY_SIZE (x ) (sizeof(x)/sizeof(x[0]))
20
20
#define bitsizeof (x ) (CHAR_BIT * sizeof(x))
21
21
#define MSB (x , bits ) ((x) & (~UINT64_C(0) << (bitsizeof(x) - (bits))))
You can’t perform that action at this time.
0 commit comments