    // Rowley C Compiler, runtime support.
    //
    // Copyright (c) 2001, 2002 Rowley Associates Limited.
    //
    // This file may be distributed under the terms of the License Agreement
    // provided with this software.
    //
    // THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING THE
    // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

    #ifndef __errno_h
    #define __errno_h

    #define EDOM   0x01
    #define EILSEQ 0x02
    #define ERANGE 0x03

    #ifdef __MT

    int *__errno(void);
    #define errno (*__errno())

    #else

    extern volatile int errno;  //Might get changed asynchronously.

    #endif

    #endif