source: rtems/cpukit/score/cpu/unix/rtems/score/types.h @ d0279f6e

4.9
Last change on this file since d0279f6e was d0279f6e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Sep 18, 2008 at 3:01:49 AM

Do not define boolean, single_precision, double_precision unless RTEMS_DEPRECATED_TYPES is given.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file rtems/score/types.h
3 */
4
5/*
6 *  This include file contains type definitions which are appropriate
7 *  for a typical modern UNIX box using GNU C for the RTEMS simulator.
8 *
9 *  COPYRIGHT (c) 1989-1999.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef _RTEMS_SCORE_TYPES_H
20#define _RTEMS_SCORE_TYPES_H
21
22#ifndef ASM
23
24#include <stdbool.h>
25#include <rtems/stdint.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/*
32 * some C++ compilers (eg: HP's) don't do 'signed' or 'volatile'
33 */
34#if defined(__cplusplus) && !defined(__GNUC__)
35#define signed
36#define volatile
37#endif
38
39/*
40 *  This section defines the basic types for this processor.
41 */
42
43typedef uint16_t     Priority_Bit_map_control;
44typedef void unix_isr;
45typedef unix_isr ( *unix_isr_entry )( void );
46
47#ifdef RTEMS_DEPRECATED_TYPES
48typedef bool    boolean;                /* Boolean value   */
49typedef float   single_precision;       /* single precision float */
50typedef double  double_precision;       /* double precision float */
51#endif
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif  /* !ASM */
58
59#endif
Note: See TracBrowser for help on using the repository browser.