Changeset 5cf5d46e in rtems


Ignore:
Timestamp:
Oct 5, 2017, 7:44:01 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e46a075
Parents:
dcdd329
git-author:
Sebastian Huber <sebastian.huber@…> (10/05/17 07:44:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/05/17 07:45:30)
Message:

score: Make status codes unconditional

The internal status codes encode a Classic rtems_status_code and error
codes used by the POSIX and C11/C++11 APIs. In case the POSIX API is
disabled, the C11/C++11 support must still work.

Close #3167.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/status.h

    rdcdd329 r5cf5d46e  
    1818#include <rtems/score/basedefs.h>
    1919
    20 #if defined(RTEMS_POSIX_API)
    2120#include <errno.h>
    2221#include <pthread.h>
    23 #endif
    2422
    2523#ifdef __cplusplus
     
    5250 * @brief Macro to build a status code from Classic and POSIX API parts.
    5351 */
    54 #if defined(RTEMS_POSIX_API)
    55   #define STATUS_BUILD( classic_status, posix_status ) \
    56     ( ( ( (unsigned int) ( posix_status ) ) << 8 ) | ( classic_status ) )
    57 #else
    58   #define STATUS_BUILD( classic_status, posix_status ) \
    59     ( classic_status )
    60 #endif
     52#define STATUS_BUILD( classic_status, posix_status ) \
     53  ( ( ( (unsigned int) ( posix_status ) ) << 8 ) | ( classic_status ) )
    6154
    6255/**
Note: See TracChangeset for help on using the changeset viewer.