Opened 16 years ago

Closed 16 years ago

#634 closed Bugs (None)

USES_CONVERSION is used in once.cpp

Reported by: vividos Owned by: Anthony Williams
Milestone: Component: threads
Version: None Severity:
Keywords: Cc:

Description

The file libs/thread/src/once.cpp uses the ATL macros
USES_CONVERSION and A2CW when the macro
BOOST_NO_ANSI_APIS is defined (it's the case when
compiling for Windows CE). This leads to compiler
errors, since the needed header <atlconv.h> is not
included anywhere.

One possible fix would be to put the following in the file:

#ifdef BOOST_NO_ANSI_APIS
#include <atlbase.h>
#include <atlconv.h> // for USES_CONVERSION and A2CW
#endif

(atlconv.h needs atlbase.h)

Another possible fix would be to change the way to
convert the string used in the call to CreateMutexW().

Change History (1)

comment:1 by Anthony Williams, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=60756

Fixed on HEAD
Note: See TracTickets for help on using tickets.