Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

Location:
EcnlProtoTool/trunk/mruby-1.3.0
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mruby-1.3.0/mrbgems/mruby-print/src/print.c

    r321 r331  
    1 #include "mruby.h"
    2 #include "mruby/string.h"
     1#include <mruby.h>
     2#include <mruby/string.h>
    33#include <stdio.h>
    44#include <string.h>
    55#include <stdlib.h>
    6 #if defined(__MINGW32__) || defined(__MINGW64__)
     6#if defined(_WIN32)
    77# include <windows.h>
    88# include <io.h>
     9#ifdef _MSC_VER
     10# define isatty(x) _isatty(x)
     11# define fileno(x) _fileno(x)
     12#endif
    913#endif
    1014
     
    1317{
    1418  if (mrb_string_p(obj)) {
    15 #if defined(__MINGW32__) || defined(__MINGW64__)
     19#if defined(_WIN32)
    1620    if (isatty(fileno(stdout))) {
    1721      DWORD written;
     
    1923      char* utf8 = RSTRING_PTR(obj);
    2024      int wlen = MultiByteToWideChar(CP_UTF8, 0, utf8, mlen, NULL, 0);
    21       wchar_t* utf16 = mrb_malloc(mrb, (wlen+1) * sizeof(wchar_t));
     25      wchar_t* utf16 = (wchar_t*)mrb_malloc(mrb, (wlen+1) * sizeof(wchar_t));
    2226      if (utf16 == NULL) return;
    2327      if (MultiByteToWideChar(CP_UTF8, 0, utf8, mlen, utf16, wlen) > 0) {
Note: See TracChangeset for help on using the changeset viewer.