Sha256: 173ec8b50f0e2554beeeccddb00ac626b2f4dac2d34063e1e0866beca9b89345

Contents?: true

Size: 571 Bytes

Versions: 2

Compression:

Stored size: 571 Bytes

Contents

#if defined _WIN32_WCE

//#include "..\..\include\zmq.h"
#include "..\..\src\err.hpp"

int errno;
int _doserrno;
int _sys_nerr;

char* error_desc_buff = NULL;

char* strerror(int errno)
{
    if (NULL != error_desc_buff)
    {
        LocalFree(error_desc_buff);
        error_desc_buff = NULL;
    }

    FormatMessage(
        FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_ALLOCATE_BUFFER,
        NULL,
        errno,
        0,
        (LPTSTR)&error_desc_buff,
        1024,
        NULL
        );
    return error_desc_buff;
}

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
laag-libzmq-4.2.3.2 vendor/github.com/zeromq/libzmq/builds/msvc/errno.cpp
laag-libzmq-4.2.3.0 vendor/github.com/zeromq/libzmq/builds/msvc/errno.cpp