compile issues on win64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Here are some changes I needed to make to get it working on win64 / vs2012

1)
In pjlib\include\pj\os.h the declaration of pj_run_app in is missing PJ_DECL
PJ_DECL(int) pj_run_app(pj_main_func_ptr main_func, int argc, char *argv[],
                    unsigned flags);

2)
In pjlib\include\pj\pool.h pj_caching_pool.pool_buf is not large enough.  I changed it to [256 * (sizeof(void*) / 4)]   (I made the guess that 'long' was supposed to be machine word size?  Not sure what the 4 is for?)
    char      pool_buf[256 * (sizeof(void*) / 4)];

3)
In pjlib\include\pj\sock.h I added a cast to (pj_sock_t) to PJ_INVALID_SOCKET
#define PJ_INVALID_SOCKET   (pj_sock_t)(-1)

4)
In pjlib\include\pj\sock.h changed pj_sock_t to be 64bit on win64
#if defined(PJ_WIN32) && defined(PJ_M_X86_64)
             typedef unsigned __int64 pj_sock_t;
#else
             typedef long pj_sock_t;
#endif

5)
In pjlib\src\pj\sock_bsd.c removed (unsigned) cast from PJ_INVALID_SOCKET
    PJ_ASSERT_RETURN(PJ_INVALID_SOCKET==INVALID_SOCKET,
                     (*sock=PJ_INVALID_SOCKET, PJ_EINVAL));
6)
In third_party\srtp\include\srtp.h moved #include "crypto_kernel.h" before #pragma pack(4)

Louis Solomon
www.SteelBytes.com<http://www.steelbytes.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140220/158314ad/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux