Skip to content

Commit

Permalink
apple fix, gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
crioux committed Dec 13, 2015
1 parent 954d596 commit b0181a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -32,3 +32,6 @@ build

# Visual Studio build directory
build_vs2013

# Test Files
test*.txt
9 changes: 8 additions & 1 deletion src/turbo_linecount.h
Expand Up @@ -33,7 +33,7 @@

////////////// Platform specific

#if defined(_APPLE__) || defined(__linux__) || defined(__CYGWIN__)
#if defined(__APPLE__) || defined(__linux__) || defined(__CYGWIN__)
#define TLC_COMPATIBLE_UNIX 1
#endif

Expand All @@ -49,7 +49,14 @@ typedef errno_t tlc_error_t;
#include<pthread.h>
#define _T(x) x
#define TCHAR char

#ifdef _ERRNO_T
typedef errno_t tlc_error_t;
#elif defined(__error_t_defined)
typedef error_t tlc_error_t;
#else
typedef int tlc_error_t;
#endif

#else
#error Unsupported operating system.
Expand Down

0 comments on commit b0181a1

Please sign in to comment.