Opened 16 years ago

Closed 15 years ago

#710 closed Bugs (fixed)

asio redefine FD_SETSIZE macro

Reported by: zhaozg Owned by: chris_kohlhoff
Milestone: Component: None
Version: None Severity: Problem
Keywords: Cc:

Description

asio sockets_types.hpp line 59, redefine FD_SETSIZE 
macro!

Change History (5)

comment:1 by chris_kohlhoff, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=1145801

Fixed in CVS.

comment:2 by anonymous, 15 years ago

Resolution: None
Status: closedreopened

I'm still getting this error when using asio 0.3.7 in a Window XP box with Visual C++ 2005 Express.

c:\work\asio-0.3.7\include\asio\detail\socket_types.hpp(44) : warning C4005: 'FD_SETSIZE' : macro redefinition

comment:3 by daniel.dandrada@…, 15 years ago

Forgot to add my e-mail on the last change.

comment:4 by daniel.dandrada@…, 15 years ago

The workaround on this issue seems to be putting "#include <asio.hpp>" as the first include.

IMHO, a "#ifndef FD_SETSIZE" on socket_types.hpp wouldn't be a bad thing.

comment:5 by chris_kohlhoff, 15 years ago

Resolution: fixed
Severity: Problem
Status: reopenedclosed

As noted previously, this has already been fixed in CVS (now SVN). The fix was applied after asio 0.3.7, and will appear in the next release of asio as well as boost 1.35.

Note: See TracTickets for help on using tickets.