mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-21 06:37:44 +01:00
Windows CE support : using standard _WIN32_WCE flag instead of WINCE
- when compiling for Windows CE, a C++ project must define the preprocessor definitions: UNDER_CE=$(CEVersion),_WIN32_WCE=$(CEVersion) - choosing the "_WIN32_CE" form for uniformization with "_WIN32" and "_WIN32_WINNT" already used in libzmq (boost is using both forms) - see http://msdn.microsoft.com/en-us/library/ee479161(v=winembedded.60).aspx
This commit is contained in:
parent
927000fe2f
commit
41d79bc19e
@ -1,4 +1,4 @@
|
||||
#if defined WINCE
|
||||
#if defined _WIN32_WCE
|
||||
|
||||
//#include "..\..\include\zmq.h"
|
||||
#include "..\..\src\err.hpp"
|
||||
|
@ -27,7 +27,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if !defined WINCE
|
||||
#if !defined _WIN32_WCE
|
||||
#include <errno.h>
|
||||
#endif
|
||||
#include <stddef.h>
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <stddef.h>
|
||||
|
||||
#if defined _MSC_VER
|
||||
#if defined WINCE
|
||||
#if defined _WIN32_WCE
|
||||
#include <cmnintrin.h>
|
||||
#else
|
||||
#include <intrin.h>
|
||||
|
@ -203,7 +203,7 @@ const char *zmq::wsa_error_no (int no_)
|
||||
void zmq::win_error (char *buffer_, size_t buffer_size_)
|
||||
{
|
||||
DWORD errcode = GetLastError ();
|
||||
#if defined WINCE
|
||||
#if defined _WIN32_WCE
|
||||
DWORD rc = FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS, NULL, errcode, MAKELANGID(LANG_NEUTRAL,
|
||||
SUBLANG_DEFAULT), (LPWSTR)buffer_, buffer_size_ / sizeof(wchar_t), NULL );
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "../include/zmq.h"
|
||||
|
||||
#include <assert.h>
|
||||
#if defined WINCE
|
||||
#if defined _WIN32_WCE
|
||||
#include "..\builds\msvc\errno.hpp"
|
||||
#else
|
||||
#include <errno.h>
|
||||
|
@ -29,7 +29,7 @@
|
||||
#if defined ZMQ_HAVE_WINDOWS
|
||||
#include "windows.hpp"
|
||||
#if defined _MSC_VER
|
||||
#if defined WINCE
|
||||
#if defined _WIN32_WCE
|
||||
#include <cmnintrin.h>
|
||||
#else
|
||||
#include <intrin.h>
|
||||
|
@ -43,7 +43,7 @@ void zmq::thread_t::start (thread_fn *tfn_, void *arg_)
|
||||
{
|
||||
tfn = tfn_;
|
||||
arg =arg_;
|
||||
#if defined WINCE
|
||||
#if defined _WIN32_WCE
|
||||
descriptor = (HANDLE) CreateThread (NULL, 0,
|
||||
&::thread_routine, this, 0 , NULL);
|
||||
#else
|
||||
|
@ -170,7 +170,7 @@
|
||||
|
||||
#include <ws2tcpip.h>
|
||||
#include <ipexport.h>
|
||||
#if !defined WINCE
|
||||
#if !defined _WIN32_WCE
|
||||
#include <process.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user