Skip to content

Commit 0578185

Browse files
committed
Change PATH_SEPARATOR definition in mingw
1 parent 6b57226 commit 0578185

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/types.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ namespace kanzi
200200
typedef uint64_t uint64;
201201
}
202202

203-
#if defined(WIN32) || defined(_WIN32) || defined(_WIN64)
203+
#if defined(__MINGW32__)
204+
#define PATH_SEPARATOR '/'
205+
#elif defined(WIN32) || defined(_WIN32) || defined(_WIN64)
204206
#define PATH_SEPARATOR '\\'
205207
#else
206208
#define PATH_SEPARATOR '/'
@@ -209,10 +211,8 @@ namespace kanzi
209211

210212
#if defined(_MSC_VER)
211213
#define ALIGNED_(x) __declspec(align(x))
212-
#else
213-
#if defined(__GNUC__)
214-
#define ALIGNED_(x) __attribute__ ((aligned(x)))
215-
#endif
214+
#elif defined(__GNUC__)
215+
#define ALIGNED_(x) __attribute__ ((aligned(x)))
216216
#endif
217217

218218
#endif

0 commit comments

Comments
 (0)