mirror of
https://github.com/crioux/turbo-linecount.git
synced 2024-10-27 17:24:01 +00:00
xfer
This commit is contained in:
parent
f239bf0873
commit
012aa4ef97
@ -35,6 +35,14 @@
|
||||
#include<pthread.h>
|
||||
#define _T(x) x
|
||||
|
||||
#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.
|
||||
#endif
|
||||
@ -64,14 +72,6 @@ BEGIN_TURBOLINECOUNT_NAMESPACE;
|
||||
#elif defined(TLC_COMPATIBLE_UNIX) // Unix
|
||||
typedef char TCHAR;
|
||||
|
||||
#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
|
||||
|
||||
typedef std::string tlc_string_t;
|
||||
typedef int tlc_filehandle_t;
|
||||
|
||||
@ -172,8 +172,8 @@ extern "C"
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
long long int turbo_linecount_handle(HANDLE fhandle, tlc_error_t * error = NULL, TCHAR ** errorstring = NULL);
|
||||
long long int turbo_linecount_file(const TCHAR *filename, tlc_error_t * error = NULL, TCHAR ** errorstring = NULL);
|
||||
long long int turbo_linecount_handle(HANDLE fhandle, errno_t * error = NULL, TCHAR ** errorstring = NULL);
|
||||
long long int turbo_linecount_file(const TCHAR *filename, errno_t * error = NULL, TCHAR ** errorstring = NULL);
|
||||
#elif defined(TLC_COMPATIBLE_UNIX)
|
||||
long long int turbo_linecount_handle(int fhandle, tlc_error_t * tlc_error = NULL, char ** errorstring = NULL);
|
||||
long long int turbo_linecount_file(const char *filename, tlc_error_t * error = NULL, char ** errorstring = NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user