Fixed compilation under Windows
parent
6e12888f63
commit
4e21886417
|
@ -16,7 +16,10 @@
|
|||
#include "celestia.h"
|
||||
#include "astro.h"
|
||||
#include <celutil/util.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#include <langinfo.h>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -442,9 +445,11 @@ astro::Date::Date(double jd)
|
|||
tzname = "UTC";
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
bool astro::Date::utf8Locale = false;
|
||||
bool astro::Date::utf8LocaleSet = false;
|
||||
iconv_t astro::Date::utf8Iconv;
|
||||
#endif
|
||||
|
||||
const char* astro::Date::toCStr(Format format) const
|
||||
{
|
||||
|
|
|
@ -15,7 +15,10 @@
|
|||
#include <cmath>
|
||||
#include <celmath/vecmath.h>
|
||||
#include <celengine/univcoord.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#include <iconv.h>
|
||||
#endif
|
||||
|
||||
#define SOLAR_ABSMAG 4.83f
|
||||
#define LN_MAG 1.085736
|
||||
|
@ -58,11 +61,13 @@ namespace astro
|
|||
std::string tzname; // timezone name
|
||||
double seconds;
|
||||
|
||||
#ifdef __GNUC__
|
||||
private:
|
||||
// Static members used to store locale related UTF-8 information
|
||||
static bool utf8Locale;
|
||||
static bool utf8LocaleSet;
|
||||
static iconv_t utf8Iconv;
|
||||
#endif
|
||||
};
|
||||
|
||||
bool parseDate(const std::string&, Date&);
|
||||
|
|
Loading…
Reference in New Issue