Changeset 39006

Show
Ignore:
Timestamp:
09/19/11 22:05:39 (20 months ago)
Author:
saturday06
Message:

ozoidf

Location:
lang/c/NetworkUpdater/trunk/Build
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/c/NetworkUpdater/trunk/Build/Common.h

    r39004 r39006  
    7070    NUI_HASH_NONE     = 0, 
    7171    NUI_HASH_MD5      = 1, 
    72     NUI_HASH_SHA1     = 2, 
     72    NUI_HASH_SHA1     = 2 
    7373} NUI_HashType; 
    7474 
  • lang/c/NetworkUpdater/trunk/Build/MSW.am

    r39004 r39006  
    2323 
    2424BUILT_SOURCES = \ 
     25  $(srcdir)/../Windows/NetworkUpdater.h \ 
    2526  $(srcdir)/../Windows/NetworkUpdater.c \ 
    2627  UnCab.exe.inl \ 
  • lang/c/NetworkUpdater/trunk/Build/MSW.c

    r39005 r39006  
    8383    */ 
    8484} 
     85 
     86#ifdef __CYGWIN__ 
     87 
     88FILE* cygwin_psedo_wfopen(const wchar_t* filename, const wchar_t* mode) { 
     89    char* filenameA = NULL; 
     90    char* modeA = NULL; 
     91    FILE* f = NULL; 
     92 
     93    filenameA = NUI_WideCharToMultiByteDup(filename); 
     94    if (!filenameA) { 
     95        goto clean_up; 
     96    } 
     97    modeA = NUI_WideCharToMultiByteDup(mode); 
     98    if (!modeA) { 
     99        goto clean_up; 
     100    } 
     101 
     102    f = fopen(filenameA, modeA); 
     103 
     104clean_up: 
     105    free(filenameA); 
     106    free(modeA); 
     107    return f; 
     108} 
     109 
     110#endif 
    85111 
    86112/* �O���[�o���ϐ��ƃ��b�N��� 
  • lang/c/NetworkUpdater/trunk/Build/MSW.h

    r39004 r39006  
    3030#    define _tcscat wcscat 
    3131#    define _tcsdup wcsdup 
    32 #    define _tfopen(x, y) *CURRENTLY_NOT_SUPPORTED* 
     32#    define _tfopen(x, y) cygwin_pseudo_wfopen(x, y) 
    3333#    define _tprintf wprintf 
    3434#    define NUI_CCP_POSIX_TO_WIN CCP_POSIX_TO_WIN_W