temporal VC patch from nkshigeru

This commit is contained in:
Yukihiro Matsumoto
2012-05-09 22:23:39 +09:00
parent 6faab394d7
commit bcd24af19c
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -45,6 +45,8 @@ typedef intptr_t mrb_sym;
#ifdef _MSC_VER
# define inline __inline
# define snprintf _snprintf
# define isnan _isnan
# define isinf(n) (!_finite(n) && !_isnan(n))
#endif
#endif /* MRUBYCONF_H */
+4
View File
@@ -1348,7 +1348,11 @@ set_default_internal(mrb_state *mrb, mrb_value klass)
}
#define digit(x) ((x) >= '0' && (x) <= '9')
#ifndef _MSC_VER
#define strstart(s, n) (strncasecmp(s, n, strlen(n)) == 0)
#else
#define strstart(s, n) (_stricmp(s, n) == 0)
#endif
#define C_CODESET "US-ASCII" /* Return this as the encoding of the
* C/POSIX locale. Could as well one day
* become "UTF-8". */
+3
View File
@@ -13,6 +13,9 @@
#ifdef INCLUDE_ENCODING
#include "encoding.h"
#include <sys/types.h> /* for ssize_t */
#ifdef _MSC_VER
typedef int ssize_t;
#endif
#include "transcode_data.h"
#include <ctype.h>
#include "st.h"