COMBINATORIAL_BLAS  1.6
compat.h
Go to the documentation of this file.
1 /* -*- mode: C; mode: folding; fill-column: 70; -*- */
2 /* Copyright 2010, Georgia Institute of Technology, USA. */
3 /* See COPYING for license. */
4 #if !defined(COMPAT_HEADER_)
5 #define COMPAT_HEADER_
6 
7 #define _FILE_OFFSET_BITS 64
8 #define _THREAD_SAFE
9 #define _XOPEN_SOURCE 600
10 #define _XOPEN_SOURCE_EXTENDED
11 #define _SVID_SOURCE
12 
13 #if __STDC_VERSION__ >= 199901L
14 #include <inttypes.h>
15 #elif defined(__MTA__)
16 #include <stdint.h>
17 #define PRId64 "d"
18 #define SCNd64 "d"
19 #else
20 #warning "Defining long as int64_t."
21 typedef long int64_t;
22 typedef unsigned uint32_fast_t;
23 #define PRId64 "ld"
24 #define SCNd64 "ld"
25 #if !defined(restrict)
26 #define restrict
27 #endif
28 #endif
29 
30 #if defined(_OPENMP)
31 #define OMP(x) _Pragma(x)
32 #include <omp.h>
33 #else
34 #define OMP(x)
35 static int omp_get_thread_num (void) { return 0; }
36 static int omp_get_num_threads (void) { return 1; }
37 #endif
38 
39 #if defined(__MTA__)
40 #define MTA(x) _Pragma(x)
41 #else
42 #define MTA(x)
43 #endif
44 
45 #endif /* COMPAT_HEADER_ */
unsigned uint32_fast_t
Definition: compat.h:22
long int64_t
Definition: compat.h:21