PLE
Parallel Location and Exchange
ple_config_defs.h
Go to the documentation of this file.
1#ifndef __PLE_CONFIG_DEFS_H__
2#define __PLE_CONFIG_DEFS_H__
3
4/*============================================================================
5 * Base macro and typedef definitions for system portability
6 *============================================================================*/
7
8/*
9 This file is part of the "Parallel Location and Exchange" library,
10 intended to provide mesh or particle-based code coupling services.
11
12 Copyright (C) 2005-2024 EDF S.A.
13
14 This library is free software; you can redistribute it and/or
15 modify it under the terms of the GNU Lesser General Public
16 License as published by the Free Software Foundation; either
17 version 2.1 of the License, or (at your option) any later version.
18
19 This library is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 Lesser General Public License for more details.
23
24 You should have received a copy of the GNU Lesser General Public
25 License along with this library; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27*/
28
29/*----------------------------------------------------------------------------*/
30
31#include "ple_config.h"
32#include "ple_config_priv.h"
33
34/*----------------------------------------------------------------------------*/
35
36#ifdef __cplusplus
37extern "C" {
38#if 0
39} /* Fake brace to force Emacs auto-indentation back to column 0 */
40#endif
41#endif /* __cplusplus */
42
43/*============================================================================
44 * Basic macros
45 *============================================================================*/
46
47/*============================================================================
48 * Internationalization (future)
49 *============================================================================*/
50
51#if defined(ENABLE_NLS) && defined(HAVE_GETTEXT)
52# include <libintl.h>
53# define _(String) dgettext(PACKAGE,String)
54# ifdef gettext_noop
55# define N_(String) gettext_noop(String)
56# else
57# define N_(String) String
58# endif /* gettext_noop */
59#else
60# define _(String) (String)
61# define N_(String) String
62# define textdomain(String) (String)
63# define gettext(String) (String)
64# define dgettext(Domain,String) (String)
65# define dcgettext(Domain,String,Type) (String)
66# define bindtextdomain(Domain,Directory) (Domain)
67#endif /* ENABLE_NLS && HAVE_GETTEXT */
68
69/*============================================================================
70 * C99 Qualifiers
71 *============================================================================*/
72
73/* inline provided by ple_config.h if necessary */
74
75/* restrict type qualifier (standard in C99) */
76
77#if defined(__GNUC__)
78#define restrict __restrict
79#else
80#define restrict
81#endif
82
83/*----------------------------------------------------------------------------*/
84
85#ifdef __cplusplus
86}
87#endif /* __cplusplus */
88
89#endif /* __PLE_CONFIG_DEFS_H__ */