Changeset View
Changeset View
Standalone View
Standalone View
src/alkvalue.h.in
- This file was moved from src/alkvalue.h.
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | * Copyright 2010 Thomas Baumgart ipwizard@users.sourceforge.net * | 2 | * Copyright 2010 Thomas Baumgart tbaumgart@kde.org * | ||
3 | * Copyright 2018 Thomas Baumgart tbaumgart@kde.org * | ||||
3 | * * | 4 | * * | ||
4 | * This file is part of libalkimia. * | 5 | * This file is part of libalkimia. * | ||
5 | * * | 6 | * * | ||
6 | * libalkimia is free software; you can redistribute it and/or * | 7 | * libalkimia is free software; you can redistribute it and/or * | ||
7 | * modify it under the terms of the GNU Lesser General Public License * | 8 | * modify it under the terms of the GNU Lesser General Public License * | ||
8 | * as published by the Free Software Foundation; either version 2.1 of * | 9 | * as published by the Free Software Foundation; either version 2.1 of * | ||
9 | * the License or (at your option) version 3 or any later version. * | 10 | * the License or (at your option) version 3 or any later version. * | ||
10 | * * | 11 | * * | ||
11 | * libalkimia is distributed in the hope that it will be useful, * | 12 | * libalkimia is distributed in the hope that it will be useful, * | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
14 | * GNU General Public License for more details. * | 15 | * GNU General Public License for more details. * | ||
15 | * * | 16 | * * | ||
16 | * You should have received a copy of the GNU General Public License * | 17 | * You should have received a copy of the GNU General Public License * | ||
17 | * along with this program. If not, see <http://www.gnu.org/licenses/> * | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/> * | ||
18 | ***************************************************************************/ | 19 | ***************************************************************************/ | ||
19 | 20 | | |||
20 | #ifndef ALKVALUE_H | 21 | #ifndef ALKVALUE_H | ||
21 | #define ALKVALUE_H | 22 | #define ALKVALUE_H | ||
22 | 23 | | |||
23 | // Workaround: include before gmpxx.h to fix build with gcc-4.9 | 24 | // Workaround: include before gmpxx.h to fix build with gcc-4.9 | ||
24 | /** @todo When gmp version is higer than 5.1.3, remove cstddef include */ | 25 | /** @todo When gmp version is higer than 5.1.3, remove cstddef include */ | ||
25 | #include <cstddef> | 26 | #include <cstddef> | ||
26 | #include <gmpxx.h> // krazy:exclude=camelcase | 27 | #include <@MP_HEADER@> // krazy:exclude=camelcase | ||
27 | #include <QString> | 28 | #include <QString> | ||
habacker: ALKIMIA_USE_MPIR needs to be defined also on compiling a client package referencing alkimia… | |||||
28 | #include <QSharedDataPointer> | 29 | #include <QSharedDataPointer> | ||
29 | 30 | | |||
30 | #include "alk_export.h" | 31 | #include "alk_export.h" | ||
31 | 32 | | |||
32 | /** | 33 | /** | ||
33 | * This class represents a financial value within Alkimia. | 34 | * This class represents a financial value within Alkimia. | ||
34 | * It can be used to represent balances, shares, amounts etc. | 35 | * It can be used to represent balances, shares, amounts etc. | ||
35 | * | 36 | * | ||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |
ALKIMIA_USE_MPIR needs to be defined also on compiling a client package referencing alkimia headers compiled with mpir support.
cmake command target_compile_definitions should solve this issue (see https://cmake.org/cmake/help/v3.0/command/target_compile_definitions.html)