cpp: Use #pragma once instead of #ifndef guards
[ghc.git] / includes / rts / Types.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 1998-2009
4 *
5 * RTS-specific types.
6 *
7 * Do not #include this file directly: #include "Rts.h" instead.
8 *
9 * To understand the structure of the RTS headers, see the wiki:
10 * http://ghc.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
11 *
12 * ---------------------------------------------------------------------------*/
13
14 #pragma once
15
16 #include <stddef.h>
17 #include <stdbool.h>
18
19 // Deprecated, use uint32_t instead.
20 typedef unsigned int nat __attribute__((deprecated)); /* uint32_t */
21
22 /* ullong (64|128-bit) type: only include if needed (not ANSI) */
23 #if defined(__GNUC__)
24 #define LL(x) (x##LL)
25 #else
26 #define LL(x) (x##L)
27 #endif
28
29 typedef struct StgClosure_ StgClosure;
30 typedef struct StgInfoTable_ StgInfoTable;
31 typedef struct StgTSO_ StgTSO;