Sha256: ab344582197bb81036998cb901cb2cf5897b3c16136bd72732a6241903f0d504

Contents?: true

Size: 526 Bytes

Versions: 8

Compression:

Stored size: 526 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

8 entries across 8 versions & 1 rubygems

Version Path
rbczmq-1.7.9 ext/zeromq/builds/msvc/errno.cpp
rbczmq-1.7.8 ext/zeromq/builds/msvc/errno.cpp
rbczmq-1.7.7 ext/zeromq/builds/msvc/errno.cpp
rbczmq-1.7.6 ext/zeromq/builds/msvc/errno.cpp
rbczmq-1.7.5 ext/zeromq/builds/msvc/errno.cpp
rbczmq-1.7.4 ext/zeromq/builds/msvc/errno.cpp
rbczmq-1.7.3 ext/zeromq/builds/msvc/errno.cpp
rbczmq-1.7.2 ext/zeromq/builds/msvc/errno.cpp