1!* ------------------------------------------------------------------------- *
2!* CGNS - CFD General Notation System (http://www.cgns.org)                  *
3!* CGNS/MLL - Mid-Level Library header file                                  *
4!* Please see cgnsconfig.h file for this local installation configuration    *
5!* ------------------------------------------------------------------------- *
6!
7!* ------------------------------------------------------------------------- *
8!
9! This software is provided 'as-is', without any express or implied warranty.
10! In no event will the authors be held liable for any damages arising from
11! the use of this software.
12!
13! Permission is granted to anyone to use this software for any purpose,
14! including commercial applications, and to alter it and redistribute it
15! freely, subject to the following restrictions:
16!
17! 1. The origin of this software must not be misrepresented; you must not
18!    claim that you wrote the original software. If you use this software
19!    in a product, an acknowledgment in the product documentation would be
20!    appreciated but is not required.
21!
22! 2. Altered source versions must be plainly marked as such, and must not
23!    be misrepresented as being the original software.
24!
25! 3. This notice may not be removed or altered from any source distribution.
26!
27!* ------------------------------------------------------------------------- *
28
29#ifndef CGNSTYPES_F_H
30#define CGNSTYPES_F_H
31
32#define CG_BUILD_PARALLEL_F @BUILDPARALLEL@
33#define CG_BUILD_64BIT_F @BUILD64BIT@
34!#define HAVE_FORTRAN_2003 @HAVE_FORTRAN_2003@
35#define HAVE_FORTRAN_2003 0
36
37#if HAVE_FORTRAN_2003
38#  if CG_BUILD_64BIT_F
39#   define cgsize_t INTEGER(KIND=C_LONG_LONG)
40#   define CGSIZE_T INTEGER(KIND=C_LONG_LONG)
41#  else
42#   define cgsize_t INTEGER(KIND=C_INT)
43#   define CGSIZE_T INTEGER(KIND=C_INT)
44#  endif
45
46#  define cglong_t INTEGER(KIND=C_LONG_LONG)
47#  define CGLONG_T INTEGER(KIND=C_LONG_LONG)
48#  define cgid_t   REAL(KIND=C_DOUBLE)
49#  define CGID_T   REAL(KIND=C_DOUBLE)
50#else
51#  if CG_BUILD_64BIT_F
52#   define cgsize_t integer*8
53#   define CGSIZE_T integer*8
54#  else
55#   define cgsize_t integer*4
56#   define CGSIZE_T integer*4
57#  endif
58
59#  define cglong_t integer*8
60#  define CGLONG_T integer*8
61#  define cgid_t   real*8
62#  define CGID_T   real*8
63#endif
64#endif
65
66