Opened 9 years ago

Closed 7 years ago

#9101 closed Bugs (fixed)

__DragonFly__ preprocessor macro not defined for VC++

Reported by: ianjirka@… Owned by: pmenso57
Milestone: To Be Determined Component: preprocessor
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

7>c:\users\ian\dev\tensor\main\code\external\boost\latest\boost\detail\endian.hpp(50): warning C4668: 'DragonFly' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' (main.cpp)

The other ones are (NetBSD, FreeBSD, ANDROID, etc.), so I assume it is an oversight. And causes C4668 as you can see.

Change History (4)

comment:1 by ianjirka@…, 9 years ago

Note -- the ticket system has stripped the double-underscore that proceeds and follows each macro name.

comment:2 by Marshall Clow, 9 years ago

Owner: changed from No-Maintainer to pmenso57

comment:3 by Edward Diener, 7 years ago

The file boost/detail/endian.hpp no longer exists in the latest Boost. For Boost 1.54 changing lines 49-50 from:

#elif defined(__NetBSD__) || defined(__FreeBSD__) || \
    defined(__OpenBSD__) || (__DragonFly__)

to:

#elif defined(__NetBSD__) || defined(__FreeBSD__) || \
    defined(__OpenBSD__) || defined(__DragonFly__)

fixes this warning problem.

Last edited 7 years ago by Edward Diener (previous) (diff)

comment:4 by Edward Diener, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.