>> (p.1)
    Author Topic: BSD detection  (Read 9138 times)
    dkaparis (OP)
    Newbie
    *
    Offline Offline

    Activity: 53
    Merit: 0


    View Profile
    August 11, 2010, 11:00:16 PM
     #1

    There is this piece of code in headers.h:

    #ifdef __WXMAC_OSX__
    #define __WXMAC__ 1
    #define __WXOSX__ 1
    #define __BSD__ 1
    #endif
    #endif


    In my testing it's not caught on FreeBSD 8.1

    I propose it be changed to:

    #if (defined(__unix__) || defined(unix)) && !defined(USG)
    #include <sys/param.h>
    #endif


    And then checks for BSD should be
    #ifdef BSD
    This is the recommended way of detecting BSD in the FreeBSD Porter's Handbook.

    This change is already done in my CMake tree.
Page 1
Viewing Page: 1