Skip to content

Commit

Permalink
msvc: remove codes for MSVC < 2013
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 26, 2016
1 parent 99165e4 commit e56ce5f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions lib/grn.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,7 @@
# endif
# endif

# if !defined(__GNUC__) && _MSC_VER < 1500
# define vsnprintf(str, size, format, ap) _vsnprintf(str, size, format, ap)
# endif /* !defined(__GNUC__) && _MSC_VER < 1500 */
# define getpid() _getpid()
# if !defined(__GNUC__) && _MSC_VER < 1400
# define fstat(fd, buf) _fstat(fd, buf)
# endif /* !defined(__GNUC__) && _MSC_VER < 1400 */

# ifndef __GNUC__
typedef SSIZE_T ssize_t;
Expand Down
5 changes: 0 additions & 5 deletions lib/str.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
# endif /* _WIN64 */
#endif /* defined(HAVE__GMTIME64_S) && defined(__GNUC__) */

/* For Visual C++ 2010. Drop the code when we drop Visual C++ 2010 support. */
#if defined(_MSC_VER) && _MSC_VER < 1800
# define va_copy(destination, source) destination = source
#endif

inline static int
grn_str_charlen_utf8(grn_ctx *ctx, const unsigned char *str, const unsigned char *end)
{
Expand Down

0 comments on commit e56ce5f

Please sign in to comment.