Ticket #7243: boost_1_51_0_win8_x64_compat.patch

File boost_1_51_0_win8_x64_compat.patch, 1.0 KB (added by Bryan Ashby <nuskooler@…>, 10 years ago)

Fix for build on Windows 8 x64

  • tools/build/v2/engine/filent.c

    diff -dur boost_1_51_0/tools/build/v2/engine/filent.c boost_1_51_0--Win8Compat/tools/build/v2/engine/filent.c
    old new  
    7979        PATHNAME f;
    8080        string filespec[ 1 ];
    8181        string filename[ 1 ];
    82         long handle;
     82        intptr_t handle;
    8383        int ret;
    8484        struct _finddata_t finfo[ 1 ];
    8585        LIST * files = L0;
  • tools/build/v2/engine/mem.h

    diff -dur boost_1_51_0/tools/build/v2/engine/mem.h boost_1_51_0--Win8Compat/tools/build/v2/engine/mem.h
    old new  
    6262#else
    6363
    6464    /* Standard C memory allocation. */
     65    #include <stdlib.h>
    6566    #define bjam_malloc_x(s) malloc(s)
    6667    #define bjam_calloc_x(n,s) calloc(n,s)
    6768    #define bjam_realloc_x(p,s) realloc(p,s)