mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix build on older versions of gcc
Gcc 4.7 thinks there's a conflict with C99 stdint macros and C++, even with -std=c++11.
This commit is contained in:
parent
495c939c3e
commit
4654f49d5c
@ -24,7 +24,6 @@
|
|||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <inttypes.h>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "gnc-int128.hpp"
|
#include "gnc-int128.hpp"
|
||||||
@ -920,4 +919,3 @@ operator>> (GncInt128 a, uint b) noexcept
|
|||||||
a >>= b;
|
a >>= b;
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,13 @@
|
|||||||
#ifndef GNCINT128_H
|
#ifndef GNCINT128_H
|
||||||
#define GNCINT128_H
|
#define GNCINT128_H
|
||||||
|
|
||||||
#include <stdint.h>
|
extern "C"
|
||||||
|
{
|
||||||
|
#define __STDC_LIMIT_MACROS 1
|
||||||
|
#define __STDC_CONSTANT_MACROS 1
|
||||||
|
#define __STDC_FORMAT_MACROS 1
|
||||||
|
#include <inttypes.h>
|
||||||
|
}
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -248,7 +254,6 @@ GncInt128 gcd (int64_t a, int64_t b);
|
|||||||
/** Compute the least common multiple of two integers
|
/** Compute the least common multiple of two integers
|
||||||
*/
|
*/
|
||||||
GncInt128 lcm (int64_t a, int64_t b);
|
GncInt128 lcm (int64_t a, int64_t b);
|
||||||
|
|
||||||
#endif //GNCINT128_H
|
#endif //GNCINT128_H
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
Loading…
Reference in New Issue
Block a user