Ignore:
Timestamp:
Sep 16, 2009, 10:15:58 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
19db385
Parents:
8a2944ab
Message:

2009-09-16 Joel Sherrill <joel.sherrill@…>

  • score/src/userextaddapiset.c: Disable code that is only used when ITRON or POSIX is enabled.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/userextaddapiset.c

    r8a2944ab ree3b1c13  
    11/*
    2  *  COPYRIGHT (c) 1989-2007.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2020 *  This routine is used to add an API extension set to the active list.
    2121 */
    22  
    2322void _User_extensions_Add_API_set (
    2423  User_extensions_Control *the_extension
     
    2928  /*
    3029   *  If a switch handler is present, append it to the switch chain.
     30   *
     31   *  NOTE: The Classic API has an extension.  Neither POSIX nor ITRON do.
     32   *        So if they are not configured, then do not check for NULL.
    3133   */
    32 
    33   if ( the_extension->Callouts.thread_switch != NULL ) {
     34#if defined(RTEMS_POSIX_API) || defined(RTEMS_ITRON_API)
     35  if ( the_extension->Callouts.thread_switch != NULL )
     36#endif
     37  {
    3438    the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch;
    3539    _Chain_Append(
Note: See TracChangeset for help on using the changeset viewer.