mirror of
https://github.com/crioux/turbo-linecount.git
synced 2024-10-27 17:24:01 +00:00
apple fix, gitignore
This commit is contained in:
parent
954d596d7d
commit
b0181a155b
3
.gitignore
vendored
3
.gitignore
vendored
@ -32,3 +32,6 @@ build
|
|||||||
|
|
||||||
# Visual Studio build directory
|
# Visual Studio build directory
|
||||||
build_vs2013
|
build_vs2013
|
||||||
|
|
||||||
|
# Test Files
|
||||||
|
test*.txt
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
////////////// Platform specific
|
////////////// Platform specific
|
||||||
|
|
||||||
#if defined(_APPLE__) || defined(__linux__) || defined(__CYGWIN__)
|
#if defined(__APPLE__) || defined(__linux__) || defined(__CYGWIN__)
|
||||||
#define TLC_COMPATIBLE_UNIX 1
|
#define TLC_COMPATIBLE_UNIX 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -49,7 +49,14 @@ typedef errno_t tlc_error_t;
|
|||||||
#include<pthread.h>
|
#include<pthread.h>
|
||||||
#define _T(x) x
|
#define _T(x) x
|
||||||
#define TCHAR char
|
#define TCHAR char
|
||||||
|
|
||||||
|
#ifdef _ERRNO_T
|
||||||
|
typedef errno_t tlc_error_t;
|
||||||
|
#elif defined(__error_t_defined)
|
||||||
typedef error_t tlc_error_t;
|
typedef error_t tlc_error_t;
|
||||||
|
#else
|
||||||
|
typedef int tlc_error_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error Unsupported operating system.
|
#error Unsupported operating system.
|
||||||
|
Loading…
Reference in New Issue
Block a user